Field

protocol Field : Hashable, RawRepresentable, Sendable where Self.RawValue == UInt32

Describes a field of a Trait, Command, Event, etc.

  • id

    The number identifying the attribute in the trait, or the field in a Command, Event, etc.

    Declaration

    Swift

    var id: UInt32 { get }
  • The type of the field.

    Declaration

    Swift

    var type: FieldType { get }
  • isEqual(to:)

    Default implementation

    Returns true if the field is equal to the other field.

    Default Implementation

    Returns true if the field is equal to the other field.

    Declaration

    Swift

    func isEqual(to other: any Field) -> Bool