pub enum TypeDef {
Struct(StructType),
Enum(EnumType),
Union(UnionType),
Typedef(TypedefType),
Bitmask(BitmaskType),
Bitset(BitsetType),
Module(ModuleEntry),
Include(IncludeEntry),
ForwardDcl(ForwardDeclEntry),
Const(ConstEntry),
}Expand description
A single type entry (Spec §7.3.3.4 — struct/enum/union/typedef/ bitmask/bitset or a nested module).
Variants§
Struct(StructType)
<struct> — XTypes aggregated type.
Enum(EnumType)
<enum> — XTypes enumerated type.
Union(UnionType)
<union> — XTypes union type.
Typedef(TypedefType)
<typedef> — type alias with optional array/sequence modifiers.
Bitmask(BitmaskType)
<bitmask> — XTypes bitmask type.
Bitset(BitsetType)
<bitset> — XTypes bitset type.
Module(ModuleEntry)
<module> — namespacing container; further types nested inside.
Include(IncludeEntry)
<include> — pull in an external XML file (DDS-XML 1.0 §7.3.3.4 +
XTypes 1.3 §7.3.2). Captured as a marker during parse; a resolver
can resolve it later for composition.
ForwardDcl(ForwardDeclEntry)
<forward_dcl> — forward decl without members (XTypes 1.3 §7.3.2).
Allows mutually recursive type refs.
Const(ConstEntry)
<const> — constant definition (XTypes 1.3 §7.3.2 / IDL 4.2
§7.4.1.4.4). Value as a string; the caller converts.