OptionalProtocol

public protocol OptionalProtocol

An optional protocol for use in type constraints.

  • The type contained in the otpional.

    Declaration

    Swift

    associatedtype Wrapped
  • Extracts an optional from the receiver.

    Declaration

    Swift

    var optional: Wrapped? { get }