Vapor Documentation Beta

Protocol Any​Optional​Type

public protocol AnyOptionalType

Type-erased OptionalType

%3 AnyOptionalType AnyOptionalType OptionalType OptionalType OptionalType->AnyOptionalType

Types Conforming to Any​Optional​Type

OptionalType

Capable of being represented by an optional wrapped type.

Requirements

any​Wrapped

var anyWrapped: Any?

Returns the wrapped type, if it exists.

any​Wrapped​Type

var anyWrappedType: Any.Type

Returns the wrapped type, if it exists.