pub struct PackedUsize { /* private fields */ }Expand description
A packed usize.
Implementations§
Source§impl PackedUsize
impl PackedUsize
Sourcepub fn from_bytes(bytes: [u8; 8]) -> Self
pub fn from_bytes(bytes: [u8; 8]) -> Self
Creates a packed usize value from its raw bytes.
Sourcepub fn to_le(self) -> usize
pub fn to_le(self) -> usize
Creates an usize from this packed integer, reading its bytes in little endian.
Trait Implementations§
impl AlwaysAligned for PackedUsize
impl AlwaysValid for PackedUsize
Source§impl Clone for PackedUsize
impl Clone for PackedUsize
Source§fn clone(&self) -> PackedUsize
fn clone(&self) -> PackedUsize
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PackedUsize
impl Eq for PackedUsize
impl Immutable for PackedUsize
Source§impl Ord for PackedUsize
impl Ord for PackedUsize
Source§fn cmp(&self, other: &PackedUsize) -> Ordering
fn cmp(&self, other: &PackedUsize) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for PackedUsize
impl PartialEq for PackedUsize
Source§fn eq(&self, other: &PackedUsize) -> bool
fn eq(&self, other: &PackedUsize) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for PackedUsize
impl PartialOrd for PackedUsize
impl StructuralPartialEq for PackedUsize
Auto Trait Implementations§
impl Freeze for PackedUsize
impl RefUnwindSafe for PackedUsize
impl Send for PackedUsize
impl Sync for PackedUsize
impl Unpin for PackedUsize
impl UnsafeUnpin for PackedUsize
impl UnwindSafe for PackedUsize
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