pub struct Packing {
pub width: u8,
pub total: bool,
}Expand description
How a list holds an element every one of which is the same size.
Fields§
§width: u8Bytes one element occupies.
total: boolWhether every byte pattern of that width is an element, which is what lets a packed list of them be checked by its length alone.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Packing
impl RefUnwindSafe for Packing
impl Send for Packing
impl Sync for Packing
impl Unpin for Packing
impl UnsafeUnpin for Packing
impl UnwindSafe for Packing
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