protocol
RawRepresentable
Inheritance | View Protocol Hierarchy → |
---|---|
Associated Types |
The "raw" type that can be used to represent all values of Every distinct value of |
Import |
|
Initializers
Convert from a value of RawValue
, yielding nil
iff
rawValue
does not correspond to a value of Self
.
Declaration
init
?(
rawValue
:
Self
.
RawValue
)
Instance Variables
The corresponding value of the "raw" type.
Self(rawValue: self.rawValue)!
is equivalent to self
.
Declaration
var
rawValue
:
Self
.
RawValue
{
get
}
A type that can be converted to an associated "raw" type, then converted back to produce an instance equivalent to the original.