pub enum TypeKind {
Struct(StructDef),
Enum(EnumDef),
Primitive(PrimitiveType),
Generic(String),
}Expand description
Type kind - represents different categories of types
Variants§
Struct(StructDef)
A struct type with fields
Enum(EnumDef)
An enum type with variants
Primitive(PrimitiveType)
A primitive type (String, i32, etc.)
Generic(String)
A generic type parameter
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 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