Protocolvapor 4.106.1Vapor
OptionalType
Capable of being represented by an optional wrapped type.
OptionalType.swift:39protocol OptionalType : AnyOptionalType
This protocol mostly exists to allow constrained extensions on generic types where an associatedtype is an Optional<T>
.
Supertypes
protocol AnyOptionalType
Type-erased
OptionalType
Requirements
Type members
associatedtype WrappedType
Underlying wrapped type.
static func makeOptionalType(WrappedType?
) -> Self Creates this optional type from an optional wrapped type.
Instance members
var wrapped: WrappedType?
Returns the wrapped type, if it exists.