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
associatedtype WrappedTypeUnderlying wrapped type.
Instance Properties
var wrapped: Self.WrappedType?Returns the wrapped type, if it exists.
Type Methods
static func makeOptionalType(Self.WrappedType?) -> SelfCreates this optional type from an optional wrapped type.