OptionalType

public protocol OptionalType

A type that can be used as a value for a query item.

The OptionalType protocol defines a type that can be used as a value for a query item. It requires conforming types to provide a none property that returns a nil value.

  • The type of the wrapped value.

    This property represents the type of the wrapped value. It is used to represent the type of the wrapped value for the optional type.

    Declaration

    Swift

    associatedtype Wrapped
  • The nil value of the optional type.

    This property represents the nil value of the optional type. It is used to represent a nil value for the optional type.

    Declaration

    Swift

    static var none: Self { get }