pub enum Type {
Show 13 variants
Void,
Int,
UInt,
Hyper,
UHyper,
Float,
Double,
Bool,
String {
max_len: Option<u32>,
},
Opaque {
len: LengthSpec,
},
Array {
elem: Box<Type>,
len: LengthSpec,
},
Optional(Box<Type>),
Named(String),
}Expand description
Type representation.
Variants§
Void
void
Int
int
UInt
unsigned int
Hyper
hyper
UHyper
unsigned hyper
Float
float
Double
double
Bool
bool
String
string
Opaque
opaque
Fields
§
len: LengthSpecArray
T
Optional(Box<Type>)
T * (optional)
Named(String)
Named type reference
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Type
impl RefUnwindSafe for Type
impl Send for Type
impl Sync for Type
impl Unpin for Type
impl UnwindSafe for Type
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