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