pub enum TypeData {
Primitive(TypeKind),
Wrapper {
kind: TypeKind,
inner: TypeId,
},
Composite {
kind: TypeKind,
member_start: u16,
member_count: u8,
},
}Expand description
Structured view of TypeDef data, eliminating the need for Option-returning accessors.
Variants§
Primitive(TypeKind)
Primitive types: Void, Node, String.
Wrapper
Wrapper types: Optional, ArrayZeroOrMore, ArrayOneOrMore, Alias.
Composite
Composite types: Struct, Enum.
Trait Implementations§
impl Copy for TypeData
impl Eq for TypeData
impl StructuralPartialEq for TypeData
Auto Trait Implementations§
impl Freeze for TypeData
impl RefUnwindSafe for TypeData
impl Send for TypeData
impl Sync for TypeData
impl Unpin for TypeData
impl UnwindSafe for TypeData
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.