pub struct PackedU64(/* private fields */);Expand description
A 64-bit number kept at the alignment of a 32-bit word on ESP-IDF. There a
u64 takes 8-byte alignment, and so would every record that holds one:
padding around the field, and on a heap that hands out 4-byte aligned
blocks, a block 8 bytes longer. Elsewhere it is a u64, which the
compiler reads and compares without copying it out of a packed field.
Implementations§
Trait Implementations§
impl Copy for PackedU64
impl Eq for PackedU64
Source§impl Ord for PackedU64
impl Ord for PackedU64
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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for PackedU64
impl PartialOrd for PackedU64
impl StructuralPartialEq for PackedU64
Auto Trait Implementations§
impl Forget for PackedU64
impl Freeze for PackedU64
impl Move for PackedU64
impl RefUnwindSafe for PackedU64
impl Send for PackedU64
impl Sync for PackedU64
impl Unpin for PackedU64
impl UnsafeUnpin for PackedU64
impl UnwindSafe for PackedU64
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