u88

Struct u88 

Source
pub struct u88(/* private fields */);

Implementations§

Source§

impl u88

Source

pub const BITS: u32 = 88u32

Source

pub const MIN: Self

Source

pub const MAX: Self

Source

pub const fn new(bits: u128) -> Option<Self>

truncates the upper bytes and sets them to zero

Source

pub const unsafe fn from_bits(bits: u128) -> Self

§Safety

the number must only have the first 11 with zeros, the upper bytes must NOT be filled

Source

pub const fn new_truncated(bits: u128) -> Self

truncates the upper bytes and sets them to zero

Source

pub const fn to_bits(self) -> u128

Source

pub const fn swapped_bytes(self) -> [u8; 11]

Source

pub const fn swap_bytes(self) -> Self

Source

pub const fn to_le(self) -> Self

Source

pub const fn to_ne_bytes(self) -> [u8; 11]

Source

pub const fn to_le_bytes(self) -> [u8; 11]

Source

pub const fn to_be_bytes(self) -> [u8; 11]

Source

pub const fn get(self) -> u128

Trait Implementations§

Source§

impl Add<&u88> for &u88

Source§

type Output = <u88 as Add>::Output

The resulting type after applying the + operator.
Source§

fn add(self, other: &u88) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<&u88> for u88

Source§

type Output = <u88 as Add>::Output

The resulting type after applying the + operator.
Source§

fn add(self, other: &u88) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<u88> for &u88

Source§

type Output = <u88 as Add>::Output

The resulting type after applying the + operator.
Source§

fn add(self, other: u88) -> Self::Output

Performs the + operation. Read more
Source§

impl Add for u88

Source§

type Output = u88

The resulting type after applying the + operator.
Source§

fn add(self, rhs: Self) -> Self::Output

Performs the + operation. Read more
Source§

impl AddAssign<&u88> for u88

Source§

fn add_assign(&mut self, other: &u88)

Performs the += operation. Read more
Source§

impl AddAssign for u88

Source§

fn add_assign(&mut self, rhs: Self)

Performs the += operation. Read more
Source§

impl Clone for u88

Source§

fn clone(&self) -> u88

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl ConstOne for u88

Available on crate feature num-traits only.
Source§

const ONE: Self

The multiplicative identity element of Self, 1.
Source§

impl ConstZero for u88

Available on crate feature num-traits only.
Source§

const ZERO: Self

The additive identity element of Self, 0.
Source§

impl Debug for u88

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for u88

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Div<&u88> for &u88

Source§

type Output = <u88 as Div>::Output

The resulting type after applying the / operator.
Source§

fn div(self, other: &u88) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<&u88> for u88

Source§

type Output = <u88 as Div>::Output

The resulting type after applying the / operator.
Source§

fn div(self, other: &u88) -> Self::Output

Performs the / operation. Read more
Source§

impl Div<u88> for &u88

Source§

type Output = <u88 as Div>::Output

The resulting type after applying the / operator.
Source§

fn div(self, other: u88) -> Self::Output

Performs the / operation. Read more
Source§

impl Div for u88

Source§

type Output = u88

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Self) -> Self::Output

Performs the / operation. Read more
Source§

impl DivAssign<&u88> for u88

Source§

fn div_assign(&mut self, other: &u88)

Performs the /= operation. Read more
Source§

impl DivAssign for u88

Source§

fn div_assign(&mut self, rhs: Self)

Performs the /= operation. Read more
Source§

impl Hash for u88

Source§

fn hash<H: Hasher>(&self, state: &mut H)

Feeds this value into the given Hasher. Read more
Source§

fn hash_slice<H: Hasher>(data: &[Self], state: &mut H)
where Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Mul<&u88> for &u88

Source§

type Output = <u88 as Mul>::Output

The resulting type after applying the * operator.
Source§

fn mul(self, other: &u88) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<&u88> for u88

Source§

type Output = <u88 as Mul>::Output

The resulting type after applying the * operator.
Source§

fn mul(self, other: &u88) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul<u88> for &u88

Source§

type Output = <u88 as Mul>::Output

The resulting type after applying the * operator.
Source§

fn mul(self, other: u88) -> Self::Output

Performs the * operation. Read more
Source§

impl Mul for u88

Source§

type Output = u88

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Self) -> Self::Output

Performs the * operation. Read more
Source§

impl MulAssign<&u88> for u88

Source§

fn mul_assign(&mut self, other: &u88)

Performs the *= operation. Read more
Source§

impl MulAssign for u88

Source§

fn mul_assign(&mut self, rhs: Self)

Performs the *= operation. Read more
Source§

impl Num for u88

Available on crate feature num-traits only.
Source§

type FromStrRadixErr = ParseIntError

Source§

fn from_str_radix(str: &str, radix: u32) -> Result<Self, Self::FromStrRadixErr>

Convert from a string and radix (typically 2..=36). Read more
Source§

impl One for u88

Available on crate feature num-traits only.
Source§

fn one() -> Self

Returns the multiplicative identity element of Self, 1. Read more
Source§

fn is_one(&self) -> bool

Returns true if self is equal to the multiplicative identity. Read more
Source§

fn set_one(&mut self)

Sets self to the multiplicative identity element of Self, 1.
Source§

impl Ord for u88

Source§

fn cmp(&self, other: &Self) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for u88

Source§

fn eq(&self, other: &Self) -> bool

Tests for self and other values to be equal, and is used by ==.
Source§

fn ne(&self, other: &Self) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd for u88

Source§

fn partial_cmp(&self, other: &Self) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
Source§

fn lt(&self, other: &Self) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
Source§

fn le(&self, other: &Self) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
Source§

fn gt(&self, other: &Self) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
Source§

fn ge(&self, other: &Self) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl Rem<&u88> for &u88

Source§

type Output = <u88 as Rem>::Output

The resulting type after applying the % operator.
Source§

fn rem(self, other: &u88) -> Self::Output

Performs the % operation. Read more
Source§

impl Rem<&u88> for u88

Source§

type Output = <u88 as Rem>::Output

The resulting type after applying the % operator.
Source§

fn rem(self, other: &u88) -> Self::Output

Performs the % operation. Read more
Source§

impl Rem<u88> for &u88

Source§

type Output = <u88 as Rem>::Output

The resulting type after applying the % operator.
Source§

fn rem(self, other: u88) -> Self::Output

Performs the % operation. Read more
Source§

impl Rem for u88

Source§

type Output = u88

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: Self) -> Self::Output

Performs the % operation. Read more
Source§

impl RemAssign<&u88> for u88

Source§

fn rem_assign(&mut self, other: &u88)

Performs the %= operation. Read more
Source§

impl RemAssign for u88

Source§

fn rem_assign(&mut self, rhs: Self)

Performs the %= operation. Read more
Source§

impl Sub<&u88> for &u88

Source§

type Output = <u88 as Sub>::Output

The resulting type after applying the - operator.
Source§

fn sub(self, other: &u88) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<&u88> for u88

Source§

type Output = <u88 as Sub>::Output

The resulting type after applying the - operator.
Source§

fn sub(self, other: &u88) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub<u88> for &u88

Source§

type Output = <u88 as Sub>::Output

The resulting type after applying the - operator.
Source§

fn sub(self, other: u88) -> Self::Output

Performs the - operation. Read more
Source§

impl Sub for u88

Source§

type Output = u88

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: Self) -> Self::Output

Performs the - operation. Read more
Source§

impl SubAssign<&u88> for u88

Source§

fn sub_assign(&mut self, other: &u88)

Performs the -= operation. Read more
Source§

impl SubAssign for u88

Source§

fn sub_assign(&mut self, rhs: Self)

Performs the -= operation. Read more
Source§

impl Zero for u88

Available on crate feature num-traits only.
Source§

fn zero() -> Self

Returns the additive identity element of Self, 0. Read more
Source§

fn is_zero(&self) -> bool

Returns true if self is equal to the additive identity.
Source§

fn set_zero(&mut self)

Sets self to the additive identity element of Self, 0.
Source§

impl Copy for u88

Source§

impl Eq for u88

Auto Trait Implementations§

§

impl Freeze for u88

§

impl RefUnwindSafe for u88

§

impl Send for u88

§

impl Sync for u88

§

impl Unpin for u88

§

impl UnwindSafe for u88

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> NumAssign for T
where T: Num + NumAssignOps,

Source§

impl<T, Rhs> NumAssignOps<Rhs> for T
where T: AddAssign<Rhs> + SubAssign<Rhs> + MulAssign<Rhs> + DivAssign<Rhs> + RemAssign<Rhs>,

Source§

impl<T> NumAssignRef for T
where T: NumAssign + for<'r> NumAssignOps<&'r T>,

Source§

impl<T, Rhs, Output> NumOps<Rhs, Output> for T
where T: Sub<Rhs, Output = Output> + Mul<Rhs, Output = Output> + Div<Rhs, Output = Output> + Add<Rhs, Output = Output> + Rem<Rhs, Output = Output>,

Source§

impl<T> NumRef for T
where T: Num + for<'r> NumOps<&'r T>,

Source§

impl<T, Base> RefNum<Base> for T
where T: NumOps<Base, Base> + for<'r> NumOps<&'r Base, Base>,