protocol Field : Hashable, RawRepresentable, Sendable where Self.RawValue == UInt32Describes a field of a Trait, Command, Event, etc.
-
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 } -
Default implementationisEqual(to:)
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