#[repr(u8)]pub enum TypeKind {
Int = 0,
Float = 1,
Bool = 2,
String = 3,
List = 4,
Struct = 5,
}Expand description
What kind of value a TypeDesc describes; compiled programs store it as a u8.
Variants§
Int = 0
Float = 1
Bool = 2
String = 3
List = 4
Its children are the element type.
Struct = 5
Its children are the field types, in order.
Implementations§
Trait Implementations§
impl Copy for TypeKind
impl Eq for TypeKind
impl StructuralPartialEq for TypeKind
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§
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
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