pub enum TypeKind {
Primitive(PrimitiveType),
Composite {
fields: Vec<CompositeFieldInfo>,
},
Enum {
encoding: PrimitiveType,
variants: Vec<EnumVariant>,
},
Set {
encoding: PrimitiveType,
choices: Vec<SetVariant>,
},
}Expand description
Type kind enumeration.
Variants§
Primitive(PrimitiveType)
Primitive type.
Composite
Composite type with fields.
Fields
§
fields: Vec<CompositeFieldInfo>Fields in the composite.
Enum
Enum type with encoding and variants.
Fields
§
encoding: PrimitiveTypeUnderlying encoding type.
§
variants: Vec<EnumVariant>Enum variants with discriminant values.
Set
Set (bitfield) type with encoding and choices.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TypeKind
impl RefUnwindSafe for TypeKind
impl Send for TypeKind
impl Sync for TypeKind
impl Unpin for TypeKind
impl UnsafeUnpin for TypeKind
impl UnwindSafe for TypeKind
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