Struct U64
#[repr(transparent)]pub struct U64(pub [u8; 8]);
Tuple Fields§
§0: [u8; 8]
Implementations§
§impl U64
impl U64
pub const MAX: U64
pub const ZERO: U64
pub const fn new(val: u64) -> U64
pub const fn get(self) -> u64
pub fn set(&mut self, val: u64)
pub const fn incr(self) -> U64
pub const fn align(self) -> [u64; 1]
pub const fn to_bytes(self) -> [u8; 8]
pub const fn saturating_sub(self, rhs: U64) -> U64
pub const fn saturating_add(self, rhs: U64) -> U64
pub fn parse_byte_string(string: &[u8]) -> Result<U64, Error>
pub fn from_ref(b: &[u8; 8]) -> &U64
Trait Implementations§
§impl Ord for U64
impl Ord for U64
§impl PartialOrd for U64
impl PartialOrd for U64
impl Copy for U64
impl Eq for U64
impl StructuralPartialEq for U64
Auto Trait Implementations§
impl Freeze for U64
impl RefUnwindSafe for U64
impl Send for U64
impl Sync for U64
impl Unpin for U64
impl UnwindSafe for U64
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more