enum
ImplicitlyUnwrappedOptional
<
T
>
Inheritance |
NilLiteralConvertible, Printable, Reflectable, _ObjectiveCBridgeable
View Protocol Hierarchy →
|
---|---|
Import |
|
Cases
Initializers
Construct a nil
instance.
Declaration
init
()
Construct a non-nil
instance that stores some
.
Declaration
init
(
_
some
:
T
)
Construct an instance from an explicitly unwrapped optional
(T?
).
Declaration
init
(
_
v
:
T
?)
Create an instance initialized with nil
.
Declaration
init
(
nilLiteral
: ())
Instance Variables
Instance Methods
Returns f(self)!
iff self
and f(self)
are not nil.
Declaration
func
flatMap
<
U
>
(
f
: @
noescape
(
T
) -
>
U
!) -
>
U
!
If self == nil
, returns nil
. Otherwise, returns f(self!)
.
Declaration
func
map
<
U
>
(
f
: @
noescape
(
T
) -
>
U
) -
>
U
!
An optional type that allows implicit member access (via compiler magic).
The compiler has special knowledge of the existence of ImplicitlyUnwrappedOptional<T>, but always interacts with it using the library intrinsics below.