Protocol
OptionalType
Capable of being represented by an optional wrapped type.
protocol OptionalType : AnyOptionalType
Overview
This protocol mostly exists to allow constrained extensions on generic types where an associatedtype is an Optional<T>.
Topics
Associated Types
WrappedTypeUnderlying wrapped type.
Instance Properties
wrappedReturns the wrapped type, if it exists.
Type Methods
makeOptionalType(_:)Creates this optional type from an optional wrapped type.