pub enum Field {
Bool(bool),
U8(u8),
I8(i8),
U16(u16),
I16(i16),
U32(u32),
I32(i32),
U64(u64),
I64(i64),
F32(f32),
F64(f64),
Offset(Pos),
}Expand description
A value written into a table field.
Variants§
Bool(bool)
A boolean, one byte.
U8(u8)
An unsigned byte.
I8(i8)
A signed byte.
U16(u16)
An unsigned 16-bit integer.
I16(i16)
A signed 16-bit integer.
U32(u32)
An unsigned 32-bit integer.
I32(i32)
A signed 32-bit integer.
U64(u64)
An unsigned 64-bit integer.
I64(i64)
A signed 64-bit integer.
F32(f32)
A 32-bit float.
F64(f64)
A 64-bit float.
Offset(Pos)
A uoffset_t to an object already written: a string, a vector or a
table.
Implementations§
Trait Implementations§
impl Copy for Field
impl StructuralPartialEq for Field
Auto Trait Implementations§
impl Freeze for Field
impl RefUnwindSafe for Field
impl Send for Field
impl Sync for Field
impl Unpin for Field
impl UnsafeUnpin for Field
impl UnwindSafe for Field
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