pub struct L64(pub u64);
Expand description
A 64-bit unsigned integer in little-endian ordering.
Tuple Fields§
§0: u64
Implementations§
source§impl L64
impl L64
sourcepub fn from_slice_le(s: &[u8]) -> Self
pub fn from_slice_le(s: &[u8]) -> Self
Read an L64 from its binary representation.
sourcepub fn to_slice_le(&self, s: &mut [u8])
pub fn to_slice_le(&self, s: &mut [u8])
Write an L64 as its binary representation.
Trait Implementations§
source§impl<'de> Deserialize<'de> for L64
impl<'de> Deserialize<'de> for L64
source§fn deserialize<D>(deserializer: D) -> Result<L64, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<L64, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Ord for L64
impl Ord for L64
source§impl PartialOrd for L64
impl PartialOrd for L64
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Storable for L64
impl Storable for L64
§type PageReferences = Empty<u64>
type PageReferences = Empty<u64>
An iterator over the offsets to pages contained in this
value. Only values from this crate can generate non-empty
iterators, but combined values (like tuples) must chain the
iterators returned by method
page_offsets
.source§fn page_references(&self) -> Self::PageReferences
fn page_references(&self) -> Self::PageReferences
If this value is an offset to another page at offset
offset
,
return Some(offset)
. Return None
else.source§impl SubAssign<usize> for L64
impl SubAssign<usize> for L64
source§fn sub_assign(&mut self, x: usize)
fn sub_assign(&mut self, x: usize)
Performs the
-=
operation. Read moresource§impl UnsizedStorable for L64
impl UnsizedStorable for L64
source§fn size(&self) -> usize
fn size(&self) -> usize
If Self::SIZE.is_some()
, this must return the same
value. The default implementation is Self;:SIZE.unwrap()
.
const ALIGN: usize = 8usize
source§unsafe fn write_to_page(&self, p: *mut u8)
unsafe fn write_to_page(&self, p: *mut u8)
Write to a page. Must not overwrite the allocated size, but
this isn’t checked (which is why it’s unsafe).
unsafe fn from_raw_ptr<'a, T>(_: &T, p: *const u8) -> &'a Self
impl Copy for L64
impl Eq for L64
impl StructuralPartialEq for L64
Auto Trait Implementations§
impl RefUnwindSafe for L64
impl Send for L64
impl Sync for L64
impl Unpin for L64
impl UnwindSafe for L64
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