pub enum Model {
Integer {
signed: bool,
size: usize,
min: i128,
max: i128,
},
Float {
size: usize,
},
Bool,
Char,
Str,
Any,
Never,
Unit(usize),
Tuple(Box<[Type]>),
Struct(Box<[(Symbol, Type)]>, bool),
Enum(Box<[(Symbol, Type)]>),
}Expand description
The elements of a type’s value
Variants§
Integer
Float
Bool
Char
Str
Any
Never
The “never” type (no variants)
Unit(usize)
The unit type (no elements)
Tuple(Box<[Type]>)
The elements of a tuple
Struct(Box<[(Symbol, Type)]>, bool)
The elements of a struct, and whether they are exhaustive
Enum(Box<[(Symbol, Type)]>)
The variants of an enumeration
Trait Implementations§
Source§impl Ord for Model
impl Ord for Model
Source§impl PartialOrd for Model
impl PartialOrd for Model
impl Eq for Model
impl StructuralPartialEq for Model
Auto Trait Implementations§
impl Freeze for Model
impl RefUnwindSafe for Model
impl Send for Model
impl Sync for Model
impl Unpin for Model
impl UnwindSafe for Model
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