Enum doku::TypeKind [−][src]
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
A homogeneous array of a possibly known size
Fields of Array
true
/ false
An algebraic data type
A floating-point number
An integer number
A homogeneous map
Option<Ty>
A UTF-8 string
A structure
Fields of Struct
A heterogeneous list of an up-front known size
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for TypeKind
impl UnwindSafe for TypeKind
Blanket Implementations
Mutably borrows from an owned value. Read more