ExpressibleAsEmpty

public protocol ExpressibleAsEmpty

A protocol for types that have an empty value

  • empty Default implementation

    Empty value of this type. For example, in case of String type the value will be “”

    Default Implementation

    Declaration

    Swift

    static var empty: Self
  • reset() Default implementation

    reset back to empty state.

    Default Implementation

    Declaration

    Swift

    mutating func reset()
  • equalsEmpty Extension method

    A Boolean value indicating whether the value is empty.

    Declaration

    Swift

    public var equalsEmpty: Bool