Optional
@frozen
public extension Optional
-
Returns unwrapped value, or fails.
Declaration
Swift
func orFail(_ message: String = "unwrapping nil") -> Wrapped
Parameters
message
Failure message
Return Value
Unwrapped value
-
Undocumented
Declaration
Swift
public var isNotNil: Bool { get }
-
Declaration
Swift
public typealias StringLiteralType = Wrapped.StringLiteralType
-
Declaration
Swift
public typealias ExtendedGraphemeClusterLiteralType = Wrapped.ExtendedGraphemeClusterLiteralType
-
Declaration
Swift
public typealias UnicodeScalarLiteralType = Wrapped.UnicodeScalarLiteralType
-
Declaration
Swift
public init(stringLiteral value: StringLiteralType)
-
Declaration
Swift
public init(extendedGraphemeClusterLiteral value: ExtendedGraphemeClusterLiteralType)
-
Declaration
Swift
public init(unicodeScalarLiteral value: UnicodeScalarLiteralType)
-
Declaration
Swift
public typealias IntegerLiteralType = Wrapped.IntegerLiteralType
-
Declaration
Swift
public init(integerLiteral value: IntegerLiteralType)
-
Declaration
Swift
public typealias BooleanLiteralType = Wrapped.BooleanLiteralType
-
Declaration
Swift
public init(booleanLiteral value: BooleanLiteralType)
-
Declaration
Swift
public typealias FloatLiteralType = Wrapped.FloatLiteralType
-
Declaration
Swift
public init(floatLiteral value: FloatLiteralType)
-
Declaration
Swift
public typealias ArrayLiteralElement = Wrapped.ArrayLiteralElement
-
Declaration
Swift
public init(arrayLiteral elements: ArrayLiteralElement...)
-
Declaration
Swift
public typealias Key = Wrapped.Key
-
Declaration
Swift
public typealias Value = Wrapped.Value