pub struct u56(/* private fields */);
Implementations§
Source§impl u56
impl u56
pub const BITS: u32 = 56u32
pub const MIN: Self
pub const MAX: Self
Sourcepub const unsafe fn from_bits(bits: u64) -> Self
pub const unsafe fn from_bits(bits: u64) -> Self
§Safety
the number must only have the first 7 with zeros, the upper bytes must NOT be filled
Sourcepub const fn new_truncated(bits: u64) -> Self
pub const fn new_truncated(bits: u64) -> Self
truncates the upper bytes and sets them to zero
pub const fn to_bits(self) -> u64
pub const fn swapped_bytes(self) -> [u8; 7]
pub const fn swap_bytes(self) -> Self
pub const fn to_le(self) -> Self
pub const fn to_ne_bytes(self) -> [u8; 7]
pub const fn to_le_bytes(self) -> [u8; 7]
pub const fn to_be_bytes(self) -> [u8; 7]
pub const fn get(self) -> u64
Trait Implementations§
Source§impl AddAssign<&u56> for u56
impl AddAssign<&u56> for u56
Source§fn add_assign(&mut self, other: &u56)
fn add_assign(&mut self, other: &u56)
Performs the
+=
operation. Read moreSource§impl AddAssign for u56
impl AddAssign for u56
Source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the
+=
operation. Read moreSource§impl DivAssign<&u56> for u56
impl DivAssign<&u56> for u56
Source§fn div_assign(&mut self, other: &u56)
fn div_assign(&mut self, other: &u56)
Performs the
/=
operation. Read moreSource§impl DivAssign for u56
impl DivAssign for u56
Source§fn div_assign(&mut self, rhs: Self)
fn div_assign(&mut self, rhs: Self)
Performs the
/=
operation. Read moreSource§impl MulAssign<&u56> for u56
impl MulAssign<&u56> for u56
Source§fn mul_assign(&mut self, other: &u56)
fn mul_assign(&mut self, other: &u56)
Performs the
*=
operation. Read moreSource§impl MulAssign for u56
impl MulAssign for u56
Source§fn mul_assign(&mut self, rhs: Self)
fn mul_assign(&mut self, rhs: Self)
Performs the
*=
operation. Read moreSource§impl Num for u56
Available on crate feature num-traits
only.
impl Num for u56
Available on crate feature
num-traits
only.type FromStrRadixErr = ParseIntError
Source§fn from_str_radix(str: &str, radix: u32) -> Result<Self, Self::FromStrRadixErr>
fn from_str_radix(str: &str, radix: u32) -> Result<Self, Self::FromStrRadixErr>
Convert from a string and radix (typically
2..=36
). Read moreSource§impl Ord for u56
impl Ord for u56
Source§impl PartialOrd for u56
impl PartialOrd for u56
Source§impl RemAssign<&u56> for u56
impl RemAssign<&u56> for u56
Source§fn rem_assign(&mut self, other: &u56)
fn rem_assign(&mut self, other: &u56)
Performs the
%=
operation. Read moreSource§impl RemAssign for u56
impl RemAssign for u56
Source§fn rem_assign(&mut self, rhs: Self)
fn rem_assign(&mut self, rhs: Self)
Performs the
%=
operation. Read moreSource§impl SubAssign<&u56> for u56
impl SubAssign<&u56> for u56
Source§fn sub_assign(&mut self, other: &u56)
fn sub_assign(&mut self, other: &u56)
Performs the
-=
operation. Read moreSource§impl SubAssign for u56
impl SubAssign for u56
Source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-=
operation. Read moreimpl Copy for u56
impl Eq for u56
Auto Trait Implementations§
impl Freeze for u56
impl RefUnwindSafe for u56
impl Send for u56
impl Sync for u56
impl Unpin for u56
impl UnwindSafe for u56
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