pub enum TypeKind {
Array {
ty: Box<Type>,
size: Option<usize>,
},
Bool,
Enum {
tag: Tag,
variants: Vec<Variant>,
},
Float,
Integer,
Map {
key: Box<Type>,
value: Box<Type>,
},
Optional {
ty: Box<Type>,
},
String,
Struct {
fields: Fields,
transparent: bool,
},
Tuple {
fields: Vec<Type>,
},
}
Variants§
Array
A homogeneous array of a possibly known size
Fields
Bool
true
/ false
Enum
An algebraic data type
Float
A floating-point number
Integer
An integer number
Map
A homogeneous map
Optional
Option<Ty>
String
A UTF-8 string
Struct
A structure
Fields
Tuple
A heterogeneous list of an up-front known size
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