Result
public enum Result<T>
Undocumented
-
Undocumented
Declaration
Swift
case success(T)
-
Undocumented
Declaration
Swift
case failure(Error)
-
Undocumented
Declaration
Swift
public init(_ value: T)
-
Undocumented
Declaration
Swift
public init(_ error: Error)
-
Undocumented
Declaration
Swift
public var failed: Bool { get }
-
Undocumented
Declaration
Swift
public var succeded: Bool { get }
-
Undocumented
Declaration
Swift
public var error: Error? { get }
-
Undocumented
Declaration
Swift
public var value: T? { get }
-
Undocumented
Declaration
Swift
public func map<U>(_ transform: (T) -> U) -> Result<U>
-
Undocumented
Declaration
Swift
public func bind<U>(_ fun: (T) -> Result<U>) -> Result<U>