pub enum Type {
}Expand description
Type annotations supported in let bindings and function signatures.
Variants§
I8
I16
I32
I64
I128
U8
U16
U32
U64
U128
F32
F64
Bool
Char
String
Usize
Isize
Array(Box<Type>, Option<usize>)
Vec(Box<Type>)
Tuple(Vec<Type>)
Option(Box<Type>)
Custom(String)
Unit
Inferred
Reference(Box<Type>, bool)
(inner_type, is_mutable)
Trait Implementations§
impl StructuralPartialEq for Type
Auto Trait Implementations§
impl Freeze for Type
impl RefUnwindSafe for Type
impl Send for Type
impl Sync for Type
impl Unpin for Type
impl UnsafeUnpin 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