#[non_exhaustive]pub enum DataType {
Show 14 variants
U8,
I8,
U16,
I16,
U32,
I32,
Bool,
F32,
F64,
Str,
Array,
Struct,
I64,
U64,
}Expand description
Possible data types stored inside a data bank.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
U8
Unsigned byte.
I8
Signed byte.
U16
Unsigned 16-bits integer.
I16
Signed 16-bits integer.
U32
Unsigned 32-bits integer.
I32
Signed 32-bits integer.
Bool
Four bytes boolean.
F32
32-bits floating-point number.
F64
64-bits floating-point number.
Str
String.
Array
Array with unknown contents.
Struct
User-defined structure.
I64
Signed 64-bits integer.
U64
Unsigned 64-bits integer.
Trait Implementations§
impl Copy for DataType
impl Eq for DataType
impl StructuralPartialEq for DataType
Auto Trait Implementations§
impl Freeze for DataType
impl RefUnwindSafe for DataType
impl Send for DataType
impl Sync for DataType
impl Unpin for DataType
impl UnwindSafe for DataType
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