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§
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)