Result
public enum Result<Success, Failure> where Failure : Error
A type providing either a success or an error value, from the result of an operation.
Note
This can be removed when migrating to Swift 5.-
The operation succeeded and returned a value.
Declaration
Swift
case success(Success) -
The operation failed and returned an error.
Declaration
Swift
case failure(Failure)
View on GitHub
Install in Dash
Result Enumeration Reference