OptionalProtocol

public protocol OptionalProtocol

Protocol for handling Optionals as a protocol. Useful for generic constraints

  • The type which this optional wraps

    Declaration

    Swift

    associatedtype WrappedType
  • Return an optional value of the wrapped type.

    Declaration

    Swift

    func getWrapped() -> WrappedType?

    Return Value

    an optional value