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
Fields
A homogeneous array of a possibly known size
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
Fields
A structure
Tuple
A heterogeneous list of an up-front known size
Trait Implementations§
Auto Trait Implementations§
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