pub(crate) struct Pack {
mask: usize,
shift: u32,
}
Fields§
§mask: usize
§shift: u32
Implementations§
source§impl Pack
impl Pack
sourcepub(crate) const fn least_significant(width: u32) -> Pack
pub(crate) const fn least_significant(width: u32) -> Pack
Value is packed in the width
least-significant bits.
sourcepub(crate) const fn then(&self, width: u32) -> Pack
pub(crate) const fn then(&self, width: u32) -> Pack
Value is packed in the width
more-significant bits.
pub(crate) fn pack(&self, value: usize, base: usize) -> usize
pub(crate) fn unpack(&self, src: usize) -> usize
Trait Implementations§
source§impl PartialEq for Pack
impl PartialEq for Pack
impl Copy for Pack
impl StructuralPartialEq for Pack
Auto Trait Implementations§
impl Freeze for Pack
impl RefUnwindSafe for Pack
impl Send for Pack
impl Sync for Pack
impl Unpin for Pack
impl UnwindSafe for Pack
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