RawValueEnum

public struct RawValueEnum<T>

Represents a Swift raw value enum definition

  • Creates a RawValueEnum instance which represents a Swift raw value enum definition

    Declaration

    Swift

    @inlinable
    public init(name: String, cases: [RawValueEnumCase<T>])

    Parameters

    name

    The name of this raw value enum

    cases

    The cases of this raw value enum

  • The name of the enum definition

    Declaration

    Swift

    public let name: String
  • The String representation of the raw value type of the enum

    Declaration

    Swift

    public let typeDeescription: String
  • The cases of the enum

    Declaration

    Swift

    public let cases: [RawValueEnumCase<T>]