Enum doku::TypeDef [−][src]
pub enum TypeDef {
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
Show 2 fields
true / false
An algebraic data type
Show 2 fields
A floating-point number
An integer number
A homogeneous map
Option<Ty>
A UTF-8 string
A structure
Show 2 fields
A heterogeneous list of an up-front known size
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for TypeDefimpl UnwindSafe for TypeDefBlanket Implementations
Mutably borrows from an owned value. Read more