InvertibleEnum

public protocol InvertibleEnum : CaseIterable, Equatable

Interface for enum values whose values can be inverted.

  • Declaration

    Swift

    var inverse: Self { get }

    Return Value

    Inverse of self.

Available where AllCases.Index == Int

  • inverse Default implementation

    Default Implementation

    Declaration

    Swift

    public var inverse: Self { get }

    Return Value

    Inverse of self.