pub enum TypeDef {
Struct(StructDef),
Enum(EnumDef),
Newtype(NewtypeDef),
CodeEnum(CodeEnumDef),
ValueWithAttr(ValueWithAttrDef),
Opaque(OpaqueDef),
}Expand description
A single type definition in the IR.
Variants§
Struct(StructDef)
A struct with named fields — from xs:complexType with xs:sequence.
Enum(EnumDef)
An enum with typed variants — from xs:complexType with xs:choice.
Newtype(NewtypeDef)
A newtype wrapping a built-in Rust type — from xs:simpleType with
non-enumeration facets (pattern, length, etc.).
CodeEnum(CodeEnumDef)
A string-valued code enum — from xs:simpleType whose restriction
contains only xs:enumeration facets.
ValueWithAttr(ValueWithAttrDef)
A value with XML attributes — from xs:complexType with
xs:simpleContent / xs:extension.
Opaque(OpaqueDef)
An opaque wrapper for xs:any content.
Implementations§
Trait Implementations§
impl StructuralPartialEq for TypeDef
Auto Trait Implementations§
impl Freeze for TypeDef
impl RefUnwindSafe for TypeDef
impl Send for TypeDef
impl Sync for TypeDef
impl Unpin for TypeDef
impl UnsafeUnpin for TypeDef
impl UnwindSafe for TypeDef
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more