pub enum BaseTy {
Show 22 variants
Unit,
U8,
U16,
U32,
U64,
I8,
I16,
I32,
I64,
F32,
F64,
String,
Bool,
Pointer(Box<BaseTy>),
Option(Box<BaseTy>),
StaticArray {
item: Box<BaseTy>,
len: usize,
},
DynamicArray(Box<BaseTy>),
Slice(Box<BaseTy>),
StaticSlice {
item: Box<BaseTy>,
len: usize,
},
Tuple(Vec<BaseTy>),
Struct {
name: String,
args: Vec<BaseTy>,
},
Enum {
name: String,
args: Vec<BaseTy>,
},
}Expand description
Pure type identity without ownership or mutability semantics.
Variants§
Unit
The unit type.
U8
Unsigned 8-bit integer type.
U16
Unsigned 16-bit integer type.
U32
Unsigned 32-bit integer type.
U64
Unsigned 64-bit integer type.
I8
Signed 8-bit integer type.
I16
Signed 16-bit integer type.
I32
Signed 32-bit integer type.
I64
Signed 64-bit integer type.
F32
32-bit floating-point type.
F64
64-bit floating-point type.
String
The string value type.
Bool
The boolean type.
Pointer(Box<BaseTy>)
Nullable owned pointer to another type.
Option(Box<BaseTy>)
Optional value.
StaticArray
Fixed-size owned array of items.
DynamicArray(Box<BaseTy>)
Runtime-sized owned array of items.
Slice(Box<BaseTy>)
Runtime-sized non-owning slice view.
StaticSlice
Fixed-extent non-owning slice view.
Fields
Tuple(Vec<BaseTy>)
Tuple of positional elements.
Struct
Struct type with optional concrete type arguments.
Fields
Enum
Enum type with optional concrete type arguments.
Implementations§
Trait Implementations§
Source§impl Ord for BaseTy
impl Ord for BaseTy
Source§impl PartialOrd for BaseTy
impl PartialOrd for BaseTy
impl Eq for BaseTy
impl StructuralPartialEq for BaseTy
Auto Trait Implementations§
impl Freeze for BaseTy
impl RefUnwindSafe for BaseTy
impl Send for BaseTy
impl Sync for BaseTy
impl Unpin for BaseTy
impl UnwindSafe for BaseTy
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