pub enum FieldType {
F64,
I64,
I32,
U32,
I16,
U16,
I8,
U8,
Bool,
Ptr,
}Expand description
Primitive field types with known sizes and alignments.
These map directly to machine types the JIT can emit loads/stores for.
Variants§
F64
64-bit IEEE 754 float (number in Shape). 8 bytes, 8-byte aligned.
I64
64-bit signed integer. 8 bytes, 8-byte aligned.
I32
32-bit signed integer. 4 bytes, 4-byte aligned.
U32
32-bit unsigned integer. 4 bytes, 4-byte aligned.
I16
16-bit signed integer. 2 bytes, 2-byte aligned.
U16
16-bit unsigned integer. 2 bytes, 2-byte aligned.
I8
8-bit signed integer. 1 byte, 1-byte aligned.
U8
8-bit unsigned integer. 1 byte, 1-byte aligned.
Bool
Boolean. 1 byte, 1-byte aligned.
Ptr
Pointer to a heap object. 8 bytes, 8-byte aligned.
Implementations§
Trait Implementations§
impl Copy for FieldType
impl Eq for FieldType
impl StructuralPartialEq for FieldType
Auto Trait Implementations§
impl Freeze for FieldType
impl RefUnwindSafe for FieldType
impl Send for FieldType
impl Sync for FieldType
impl Unpin for FieldType
impl UnsafeUnpin for FieldType
impl UnwindSafe for FieldType
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