pub struct Field {
pub hash: u32,
pub mask: u32,
pub offset: u16,
pub field_type: FieldType,
pub shift: u8,
pub default: FieldValue,
}Expand description
Definition of a field (column) in a BCSV
Fields§
§hash: u32Hash of the field name
mask: u32Bitmask for the field value
offset: u16Offset within an entry (set during packing/unpacking)
field_type: FieldTypeData type of the field
shift: u8Bit shift amount
default: FieldValueDefault value for new entries
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Field
impl RefUnwindSafe for Field
impl Send for Field
impl Sync for Field
impl Unpin 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