Extensions

The following extensions are available globally.

  • Optional implements OptionalProtocol for use in generic constraints

    See more

    Declaration

    Swift

    enum Optional<Wrapped> : ExpressibleByNilLiteral
  • Declaration

    Swift

    enum Result<Success, Failure> where Failure : Error