pub struct L64(pub u64);Expand description
A 64-bit unsigned integer in little-endian ordering.
Tuple Fields§
§0: u64Implementations§
Source§impl L64
impl L64
Sourcepub fn from_slice_le(s: &[u8]) -> L64
pub fn from_slice_le(s: &[u8]) -> L64
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§
impl Copy for L64
Source§impl<'de> Deserialize<'de> for L64
impl<'de> Deserialize<'de> for L64
Source§fn deserialize<D>(
deserializer: D,
) -> Result<L64, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<L64, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for L64
Source§impl Ord for L64
impl Ord for L64
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 PartialOrd for L64
impl PartialOrd for L64
Source§impl Serialize for L64
impl Serialize for L64
Source§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl Storable for L64
impl Storable for L64
Source§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) -> <L64 as Storable>::PageReferences
fn page_references(&self) -> <L64 as Storable>::PageReferences
If this value is an offset to another page at offset
offset,
return Some(offset). Return None else.impl StructuralPartialEq for L64
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
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 L64
Auto Trait Implementations§
impl Freeze for L64
impl RefUnwindSafe for L64
impl Send for L64
impl Sync for L64
impl Unpin for L64
impl UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.