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