ImplicitlyUnwrappedOptional

enum ImplicitlyUnwrappedOptional<Wrapped>

An optional type that allows implicit member access.

Inheritance CustomDebugStringConvertible, CustomStringConvertible, NilLiteralConvertible, _ObjectiveCBridgeable, _Reflectable View Protocol Hierarchy →
Import import Swift

Cases

Initializers

init()

Construct a nil instance.

Deprecated: Parameterless initializer will be removed in Swift 3. Use nil literal instead..

Declaration

init()
init(_: Wrapped)

Construct a non-nil instance that stores some.

Declaration

init(_ some: Wrapped)
init(_: Wrapped?)

Construct an instance from an explicitly unwrapped optional (Wrapped?).

Declaration

init(_ v: Wrapped?)
init(nilLiteral:)

Create an instance initialized with nil.

Declaration

init(nilLiteral: ())

Instance Variables

var debugDescription: String

Declaration

var debugDescription: String { get }
var description: String

A textual representation of self.

Declaration

var description: String { get }

Instance Methods

func flatMap(_:)

Returns nil if self is nil, f(self!) otherwise.

Deprecated: Unaccessible. Will be removed in Swift 3.

Declaration

func flatMap<U>(@noescape f: (Wrapped) throws -> U!) rethrows -> U!
func map(_:)

If self == nil, returns nil. Otherwise, returns f(self!).

Deprecated: Unaccessible. Will be removed in Swift 3.

Declaration

func map<U>(@noescape f: (Wrapped) throws -> U) rethrows -> U!