pub enum PackedWidth {
Default,
U8,
U16,
U32,
U64,
I8,
I16,
I32,
I64,
F32,
F64,
}Expand description
Packed width override from field modifiers.
Variants§
Implementations§
Source§impl PackedWidth
impl PackedWidth
Sourcepub fn from_field(field: &FieldDef) -> Self
pub fn from_field(field: &FieldDef) -> Self
Parse from a field’s modifiers.
Sourcepub fn fixed_size(&self) -> Option<usize>
pub fn fixed_size(&self) -> Option<usize>
Fixed byte size, or None for default (variable-width).
Trait Implementations§
Source§impl Clone for PackedWidth
impl Clone for PackedWidth
Source§fn clone(&self) -> PackedWidth
fn clone(&self) -> PackedWidth
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PackedWidth
impl Debug for PackedWidth
Source§impl PartialEq for PackedWidth
impl PartialEq for PackedWidth
impl Copy for PackedWidth
impl Eq for PackedWidth
impl StructuralPartialEq for PackedWidth
Auto Trait Implementations§
impl Freeze for PackedWidth
impl RefUnwindSafe for PackedWidth
impl Send for PackedWidth
impl Sync for PackedWidth
impl Unpin for PackedWidth
impl UnsafeUnpin for PackedWidth
impl UnwindSafe for PackedWidth
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