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