InnerUint

Struct InnerUint 

Source
#[repr(C)]
pub struct InnerUint(pub [u64; 3]);
Expand description

Little-endian large integer type

Tuple Fields§

§0: [u64; 3]

Implementations§

Source§

impl InnerUint

Source

pub const MAX: InnerUint

Maximum value.

Source

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

Converts a string slice in a given base to an integer. Only supports radixes of 10 and 16.

Source

pub fn from_dec_str(value: &str) -> Result<Self, FromDecStrErr>

Convert from a decimal string.

Source

pub const fn low_u32(&self) -> u32

Conversion to u32

Source

pub const fn low_u64(&self) -> u64

Low word (u64)

Source

pub fn as_u32(&self) -> u32

Conversion to u32 with overflow checking

§Panics

Panics if the number is larger than 2^32.

Source

pub fn as_u64(&self) -> u64

Conversion to u64 with overflow checking

§Panics

Panics if the number is larger than u64::max_value().

Source

pub fn as_usize(&self) -> usize

Conversion to usize with overflow checking

§Panics

Panics if the number is larger than usize::max_value().

Source

pub const fn is_zero(&self) -> bool

Whether this is zero.

Source

pub fn bits(&self) -> usize

Return the least number of bits needed to represent the number

Source

pub const fn bit(&self, index: usize) -> bool

Return if specific bit is set.

§Panics

Panics if index exceeds the bit width of the number.

Source

pub fn leading_zeros(&self) -> u32

Returns the number of leading zeros in the binary representation of self.

Source

pub fn trailing_zeros(&self) -> u32

Returns the number of trailing zeros in the binary representation of self.

Source

pub const fn byte(&self, index: usize) -> u8

Return specific byte.

§Panics

Panics if index exceeds the byte width of the number.

Source

pub fn to_big_endian(&self, bytes: &mut [u8])

Write to the slice in big-endian format.

Source

pub fn to_little_endian(&self, bytes: &mut [u8])

Write to the slice in little-endian format.

Source

pub fn exp10(n: usize) -> Self

Create 10**n as this type.

§Panics

Panics if the result overflows the type.

Source

pub const fn zero() -> Self

Zero (additive identity) of this type.

Source

pub const fn one() -> Self

One (multiplicative identity) of this type.

Source

pub const fn max_value() -> Self

The maximum value which can be inhabited by this type.

Source

pub fn div_mod(self, other: Self) -> (Self, Self)

Returns a pair (self / other, self % other).

§Panics

Panics if other is zero.

Source

pub fn integer_sqrt(&self) -> Self

Compute the highest n such that n * n <= self.

Source

pub fn pow(self, expon: Self) -> Self

Fast exponentiation by squaring https://en.wikipedia.org/wiki/Exponentiation_by_squaring

§Panics

Panics if the result overflows the type.

Source

pub fn overflowing_pow(self, expon: Self) -> (Self, bool)

Fast exponentiation by squaring. Returns result and overflow flag.

Source

pub fn checked_pow(self, expon: InnerUint) -> Option<InnerUint>

Checked exponentiation. Returns None if overflow occurred.

Source

pub fn overflowing_add(self, other: InnerUint) -> (InnerUint, bool)

Addition which overflows and returns a flag if it does.

Source

pub fn saturating_add(self, other: InnerUint) -> InnerUint

Addition which saturates at the maximum value (Self::MAX).

Source

pub fn checked_add(self, other: InnerUint) -> Option<InnerUint>

Checked addition. Returns None if overflow occurred.

Source

pub fn overflowing_sub(self, other: InnerUint) -> (InnerUint, bool)

Subtraction which underflows and returns a flag if it does.

Source

pub fn saturating_sub(self, other: InnerUint) -> InnerUint

Subtraction which saturates at zero.

Source

pub fn checked_sub(self, other: InnerUint) -> Option<InnerUint>

Checked subtraction. Returns None if overflow occurred.

Source

pub fn abs_diff(self, other: InnerUint) -> InnerUint

Computes the absolute difference between self and other.

Source

pub fn overflowing_mul(self, other: InnerUint) -> (InnerUint, bool)

Multiply with overflow, returning a flag if it does.

Source

pub fn saturating_mul(self, other: InnerUint) -> InnerUint

Multiplication which saturates at the maximum value..

Source

pub fn checked_mul(self, other: InnerUint) -> Option<InnerUint>

Checked multiplication. Returns None if overflow occurred.

Source

pub fn checked_div(self, other: InnerUint) -> Option<InnerUint>

Checked division. Returns None if other == 0.

Source

pub fn checked_rem(self, other: InnerUint) -> Option<InnerUint>

Checked modulus. Returns None if other == 0.

Source

pub fn overflowing_neg(self) -> (InnerUint, bool)

Negation with overflow.

Source

pub fn checked_neg(self) -> Option<InnerUint>

Checked negation. Returns None unless self == 0.

Source

pub fn from_big_endian(slice: &[u8]) -> Self

Converts from big endian representation bytes in memory.

Source

pub fn from_little_endian(slice: &[u8]) -> Self

Converts from little endian representation bytes in memory.

Source§

impl InnerUint

Source

pub const fn low_u128(&self) -> u128

Low 2 words (u128)

Source

pub fn as_u128(&self) -> u128

Conversion to u128 with overflow checking

§Panics

Panics if the number is larger than 2^128.

Trait Implementations§

Source§

impl<'a, T> Add<T> for &'a InnerUint
where T: Into<InnerUint>,

Source§

type Output = InnerUint

The resulting type after applying the + operator.
Source§

fn add(self, other: T) -> InnerUint

Performs the + operation. Read more
Source§

impl<T> Add<T> for InnerUint
where T: Into<InnerUint>,

Source§

type Output = InnerUint

The resulting type after applying the + operator.
Source§

fn add(self, other: T) -> InnerUint

Performs the + operation. Read more
Source§

impl AddAssign for InnerUint

Source§

fn add_assign(&mut self, other: InnerUint)

Performs the += operation. Read more
Source§

impl AsRef<[u64]> for InnerUint

Get a reference to the underlying little-endian words.

Source§

fn as_ref(&self) -> &[u64]

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl BitAnd for InnerUint

Source§

type Output = InnerUint

The resulting type after applying the & operator.
Source§

fn bitand(self, other: InnerUint) -> InnerUint

Performs the & operation. Read more
Source§

impl BitAndAssign for InnerUint

Source§

fn bitand_assign(&mut self, rhs: InnerUint)

Performs the &= operation. Read more
Source§

impl BitOr for InnerUint

Source§

type Output = InnerUint

The resulting type after applying the | operator.
Source§

fn bitor(self, other: InnerUint) -> InnerUint

Performs the | operation. Read more
Source§

impl BitOrAssign for InnerUint

Source§

fn bitor_assign(&mut self, rhs: InnerUint)

Performs the |= operation. Read more
Source§

impl BitXor for InnerUint

Source§

type Output = InnerUint

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, other: InnerUint) -> InnerUint

Performs the ^ operation. Read more
Source§

impl BitXorAssign for InnerUint

Source§

fn bitxor_assign(&mut self, rhs: InnerUint)

Performs the ^= operation. Read more
Source§

impl Clone for InnerUint

Source§

fn clone(&self) -> InnerUint

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 Debug for InnerUint

Source§

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

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

impl Default for InnerUint

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Display for InnerUint

Source§

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

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

impl<'a, T> Div<T> for &'a InnerUint
where T: Into<InnerUint>,

Source§

type Output = InnerUint

The resulting type after applying the / operator.
Source§

fn div(self, other: T) -> InnerUint

Performs the / operation. Read more
Source§

impl<T> Div<T> for InnerUint
where T: Into<InnerUint>,

Source§

type Output = InnerUint

The resulting type after applying the / operator.
Source§

fn div(self, other: T) -> InnerUint

Performs the / operation. Read more
Source§

impl<T> DivAssign<T> for InnerUint
where T: Into<InnerUint>,

Source§

fn div_assign(&mut self, other: T)

Performs the /= operation. Read more
Source§

impl<'a> From<&'a [u8]> for InnerUint

Source§

fn from(bytes: &[u8]) -> InnerUint

Converts to this type from the input type.
Source§

impl<'a> From<&'a [u8; 24]> for InnerUint

Source§

fn from(bytes: &[u8; 24]) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a InnerUint> for InnerUint

Source§

fn from(x: &'a InnerUint) -> InnerUint

Converts to this type from the input type.
Source§

impl From<&'static str> for InnerUint

Source§

fn from(s: &'static str) -> Self

Converts to this type from the input type.
Source§

impl From<[u8; 24]> for InnerUint

Source§

fn from(bytes: [u8; 24]) -> Self

Converts to this type from the input type.
Source§

impl From<InnerUint> for [u8; 24]

Source§

fn from(number: InnerUint) -> Self

Converts to this type from the input type.
Source§

impl From<i128> for InnerUint

Source§

fn from(value: i128) -> InnerUint

Converts to this type from the input type.
Source§

impl From<i16> for InnerUint

Source§

fn from(value: i16) -> InnerUint

Converts to this type from the input type.
Source§

impl From<i32> for InnerUint

Source§

fn from(value: i32) -> InnerUint

Converts to this type from the input type.
Source§

impl From<i64> for InnerUint

Source§

fn from(value: i64) -> InnerUint

Converts to this type from the input type.
Source§

impl From<i8> for InnerUint

Source§

fn from(value: i8) -> InnerUint

Converts to this type from the input type.
Source§

impl From<isize> for InnerUint

Source§

fn from(value: isize) -> InnerUint

Converts to this type from the input type.
Source§

impl From<u128> for InnerUint

Source§

fn from(value: u128) -> InnerUint

Converts to this type from the input type.
Source§

impl From<u16> for InnerUint

Source§

fn from(value: u16) -> InnerUint

Converts to this type from the input type.
Source§

impl From<u32> for InnerUint

Source§

fn from(value: u32) -> InnerUint

Converts to this type from the input type.
Source§

impl From<u64> for InnerUint

Source§

fn from(value: u64) -> InnerUint

Converts to this type from the input type.
Source§

impl From<u8> for InnerUint

Source§

fn from(value: u8) -> InnerUint

Converts to this type from the input type.
Source§

impl From<usize> for InnerUint

Source§

fn from(value: usize) -> InnerUint

Converts to this type from the input type.
Source§

impl FromStr for InnerUint

Source§

type Err = FromHexError

The associated error which can be returned from parsing.
Source§

fn from_str(value: &str) -> Result<InnerUint, Self::Err>

Parses a string s to return a value of this type. Read more
Source§

impl Hash for InnerUint

Source§

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

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

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

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

impl LowerHex for InnerUint

Source§

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

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

impl<'a> Mul<&'a InnerUint> for InnerUint

Source§

type Output = InnerUint

The resulting type after applying the * operator.
Source§

fn mul(self, other: &'a InnerUint) -> InnerUint

Performs the * operation. Read more
Source§

impl<'a> Mul<&'a i16> for &'a InnerUint

Source§

type Output = InnerUint

The resulting type after applying the * operator.
Source§

fn mul(self, other: &'a i16) -> InnerUint

Performs the * operation. Read more
Source§

impl<'a> Mul<&'a i16> for InnerUint

Source§

type Output = InnerUint

The resulting type after applying the * operator.
Source§

fn mul(self, other: &'a i16) -> InnerUint

Performs the * operation. Read more
Source§

impl<'a> Mul<&'a i32> for &'a InnerUint

Source§

type Output = InnerUint

The resulting type after applying the * operator.
Source§

fn mul(self, other: &'a i32) -> InnerUint

Performs the * operation. Read more
Source§

impl<'a> Mul<&'a i32> for InnerUint

Source§

type Output = InnerUint

The resulting type after applying the * operator.
Source§

fn mul(self, other: &'a i32) -> InnerUint

Performs the * operation. Read more
Source§

impl<'a> Mul<&'a i64> for &'a InnerUint

Source§

type Output = InnerUint

The resulting type after applying the * operator.
Source§

fn mul(self, other: &'a i64) -> InnerUint

Performs the * operation. Read more
Source§

impl<'a> Mul<&'a i64> for InnerUint

Source§

type Output = InnerUint

The resulting type after applying the * operator.
Source§

fn mul(self, other: &'a i64) -> InnerUint

Performs the * operation. Read more
Source§

impl<'a> Mul<&'a i8> for &'a InnerUint

Source§

type Output = InnerUint

The resulting type after applying the * operator.
Source§

fn mul(self, other: &'a i8) -> InnerUint

Performs the * operation. Read more
Source§

impl<'a> Mul<&'a i8> for InnerUint

Source§

type Output = InnerUint

The resulting type after applying the * operator.
Source§

fn mul(self, other: &'a i8) -> InnerUint

Performs the * operation. Read more
Source§

impl<'a> Mul<&'a isize> for &'a InnerUint

Source§

type Output = InnerUint

The resulting type after applying the * operator.
Source§

fn mul(self, other: &'a isize) -> InnerUint

Performs the * operation. Read more
Source§

impl<'a> Mul<&'a isize> for InnerUint

Source§

type Output = InnerUint

The resulting type after applying the * operator.
Source§

fn mul(self, other: &'a isize) -> InnerUint

Performs the * operation. Read more
Source§

impl<'a> Mul<&'a u16> for &'a InnerUint

Source§

type Output = InnerUint

The resulting type after applying the * operator.
Source§

fn mul(self, other: &'a u16) -> InnerUint

Performs the * operation. Read more
Source§

impl<'a> Mul<&'a u16> for InnerUint

Source§

type Output = InnerUint

The resulting type after applying the * operator.
Source§

fn mul(self, other: &'a u16) -> InnerUint

Performs the * operation. Read more
Source§

impl<'a> Mul<&'a u32> for &'a InnerUint

Source§

type Output = InnerUint

The resulting type after applying the * operator.
Source§

fn mul(self, other: &'a u32) -> InnerUint

Performs the * operation. Read more
Source§

impl<'a> Mul<&'a u32> for InnerUint

Source§

type Output = InnerUint

The resulting type after applying the * operator.
Source§

fn mul(self, other: &'a u32) -> InnerUint

Performs the * operation. Read more
Source§

impl<'a> Mul<&'a u64> for &'a InnerUint

Source§

type Output = InnerUint

The resulting type after applying the * operator.
Source§

fn mul(self, other: &'a u64) -> InnerUint

Performs the * operation. Read more
Source§

impl<'a> Mul<&'a u64> for InnerUint

Source§

type Output = InnerUint

The resulting type after applying the * operator.
Source§

fn mul(self, other: &'a u64) -> InnerUint

Performs the * operation. Read more
Source§

impl<'a> Mul<&'a u8> for &'a InnerUint

Source§

type Output = InnerUint

The resulting type after applying the * operator.
Source§

fn mul(self, other: &'a u8) -> InnerUint

Performs the * operation. Read more
Source§

impl<'a> Mul<&'a u8> for InnerUint

Source§

type Output = InnerUint

The resulting type after applying the * operator.
Source§

fn mul(self, other: &'a u8) -> InnerUint

Performs the * operation. Read more
Source§

impl<'a> Mul<&'a usize> for &'a InnerUint

Source§

type Output = InnerUint

The resulting type after applying the * operator.
Source§

fn mul(self, other: &'a usize) -> InnerUint

Performs the * operation. Read more
Source§

impl<'a> Mul<&'a usize> for InnerUint

Source§

type Output = InnerUint

The resulting type after applying the * operator.
Source§

fn mul(self, other: &'a usize) -> InnerUint

Performs the * operation. Read more
Source§

impl<'a> Mul<InnerUint> for &'a InnerUint

Source§

type Output = InnerUint

The resulting type after applying the * operator.
Source§

fn mul(self, other: InnerUint) -> InnerUint

Performs the * operation. Read more
Source§

impl<'a> Mul<i16> for &'a InnerUint

Source§

type Output = InnerUint

The resulting type after applying the * operator.
Source§

fn mul(self, other: i16) -> InnerUint

Performs the * operation. Read more
Source§

impl Mul<i16> for InnerUint

Source§

type Output = InnerUint

The resulting type after applying the * operator.
Source§

fn mul(self, other: i16) -> InnerUint

Performs the * operation. Read more
Source§

impl<'a> Mul<i32> for &'a InnerUint

Source§

type Output = InnerUint

The resulting type after applying the * operator.
Source§

fn mul(self, other: i32) -> InnerUint

Performs the * operation. Read more
Source§

impl Mul<i32> for InnerUint

Source§

type Output = InnerUint

The resulting type after applying the * operator.
Source§

fn mul(self, other: i32) -> InnerUint

Performs the * operation. Read more
Source§

impl<'a> Mul<i64> for &'a InnerUint

Source§

type Output = InnerUint

The resulting type after applying the * operator.
Source§

fn mul(self, other: i64) -> InnerUint

Performs the * operation. Read more
Source§

impl Mul<i64> for InnerUint

Source§

type Output = InnerUint

The resulting type after applying the * operator.
Source§

fn mul(self, other: i64) -> InnerUint

Performs the * operation. Read more
Source§

impl<'a> Mul<i8> for &'a InnerUint

Source§

type Output = InnerUint

The resulting type after applying the * operator.
Source§

fn mul(self, other: i8) -> InnerUint

Performs the * operation. Read more
Source§

impl Mul<i8> for InnerUint

Source§

type Output = InnerUint

The resulting type after applying the * operator.
Source§

fn mul(self, other: i8) -> InnerUint

Performs the * operation. Read more
Source§

impl<'a> Mul<isize> for &'a InnerUint

Source§

type Output = InnerUint

The resulting type after applying the * operator.
Source§

fn mul(self, other: isize) -> InnerUint

Performs the * operation. Read more
Source§

impl Mul<isize> for InnerUint

Source§

type Output = InnerUint

The resulting type after applying the * operator.
Source§

fn mul(self, other: isize) -> InnerUint

Performs the * operation. Read more
Source§

impl<'a> Mul<u16> for &'a InnerUint

Source§

type Output = InnerUint

The resulting type after applying the * operator.
Source§

fn mul(self, other: u16) -> InnerUint

Performs the * operation. Read more
Source§

impl Mul<u16> for InnerUint

Source§

type Output = InnerUint

The resulting type after applying the * operator.
Source§

fn mul(self, other: u16) -> InnerUint

Performs the * operation. Read more
Source§

impl<'a> Mul<u32> for &'a InnerUint

Source§

type Output = InnerUint

The resulting type after applying the * operator.
Source§

fn mul(self, other: u32) -> InnerUint

Performs the * operation. Read more
Source§

impl Mul<u32> for InnerUint

Source§

type Output = InnerUint

The resulting type after applying the * operator.
Source§

fn mul(self, other: u32) -> InnerUint

Performs the * operation. Read more
Source§

impl<'a> Mul<u64> for &'a InnerUint

Source§

type Output = InnerUint

The resulting type after applying the * operator.
Source§

fn mul(self, other: u64) -> InnerUint

Performs the * operation. Read more
Source§

impl Mul<u64> for InnerUint

Source§

type Output = InnerUint

The resulting type after applying the * operator.
Source§

fn mul(self, other: u64) -> InnerUint

Performs the * operation. Read more
Source§

impl<'a> Mul<u8> for &'a InnerUint

Source§

type Output = InnerUint

The resulting type after applying the * operator.
Source§

fn mul(self, other: u8) -> InnerUint

Performs the * operation. Read more
Source§

impl Mul<u8> for InnerUint

Source§

type Output = InnerUint

The resulting type after applying the * operator.
Source§

fn mul(self, other: u8) -> InnerUint

Performs the * operation. Read more
Source§

impl<'a> Mul<usize> for &'a InnerUint

Source§

type Output = InnerUint

The resulting type after applying the * operator.
Source§

fn mul(self, other: usize) -> InnerUint

Performs the * operation. Read more
Source§

impl Mul<usize> for InnerUint

Source§

type Output = InnerUint

The resulting type after applying the * operator.
Source§

fn mul(self, other: usize) -> InnerUint

Performs the * operation. Read more
Source§

impl<'a> Mul for &'a InnerUint

Source§

type Output = InnerUint

The resulting type after applying the * operator.
Source§

fn mul(self, other: &'a InnerUint) -> InnerUint

Performs the * operation. Read more
Source§

impl Mul for InnerUint

Source§

type Output = InnerUint

The resulting type after applying the * operator.
Source§

fn mul(self, other: InnerUint) -> InnerUint

Performs the * operation. Read more
Source§

impl MulAssign<i16> for InnerUint

Source§

fn mul_assign(&mut self, other: i16)

Performs the *= operation. Read more
Source§

impl MulAssign<i32> for InnerUint

Source§

fn mul_assign(&mut self, other: i32)

Performs the *= operation. Read more
Source§

impl MulAssign<i64> for InnerUint

Source§

fn mul_assign(&mut self, other: i64)

Performs the *= operation. Read more
Source§

impl MulAssign<i8> for InnerUint

Source§

fn mul_assign(&mut self, other: i8)

Performs the *= operation. Read more
Source§

impl MulAssign<isize> for InnerUint

Source§

fn mul_assign(&mut self, other: isize)

Performs the *= operation. Read more
Source§

impl MulAssign<u16> for InnerUint

Source§

fn mul_assign(&mut self, other: u16)

Performs the *= operation. Read more
Source§

impl MulAssign<u32> for InnerUint

Source§

fn mul_assign(&mut self, other: u32)

Performs the *= operation. Read more
Source§

impl MulAssign<u64> for InnerUint

Source§

fn mul_assign(&mut self, other: u64)

Performs the *= operation. Read more
Source§

impl MulAssign<u8> for InnerUint

Source§

fn mul_assign(&mut self, other: u8)

Performs the *= operation. Read more
Source§

impl MulAssign<usize> for InnerUint

Source§

fn mul_assign(&mut self, other: usize)

Performs the *= operation. Read more
Source§

impl MulAssign for InnerUint

Source§

fn mul_assign(&mut self, other: InnerUint)

Performs the *= operation. Read more
Source§

impl Not for InnerUint

Source§

type Output = InnerUint

The resulting type after applying the ! operator.
Source§

fn not(self) -> InnerUint

Performs the unary ! operation. Read more
Source§

impl Ord for InnerUint

Source§

fn cmp(&self, other: &InnerUint) -> 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 InnerUint

Source§

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

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

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

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

impl PartialOrd for InnerUint

Source§

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

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

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

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

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

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

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

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

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

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

impl<'a, T> Rem<T> for &'a InnerUint
where T: Into<InnerUint> + Copy,

Source§

type Output = InnerUint

The resulting type after applying the % operator.
Source§

fn rem(self, other: T) -> InnerUint

Performs the % operation. Read more
Source§

impl<T> Rem<T> for InnerUint
where T: Into<InnerUint> + Copy,

Source§

type Output = InnerUint

The resulting type after applying the % operator.
Source§

fn rem(self, other: T) -> InnerUint

Performs the % operation. Read more
Source§

impl<T> RemAssign<T> for InnerUint
where T: Into<InnerUint> + Copy,

Source§

fn rem_assign(&mut self, other: T)

Performs the %= operation. Read more
Source§

impl<'a, T> Shl<T> for &'a InnerUint
where T: Into<InnerUint>,

Source§

type Output = InnerUint

The resulting type after applying the << operator.
Source§

fn shl(self, shift: T) -> InnerUint

Performs the << operation. Read more
Source§

impl<T> Shl<T> for InnerUint
where T: Into<InnerUint>,

Source§

type Output = InnerUint

The resulting type after applying the << operator.
Source§

fn shl(self, shift: T) -> InnerUint

Performs the << operation. Read more
Source§

impl<T> ShlAssign<T> for InnerUint
where T: Into<InnerUint>,

Source§

fn shl_assign(&mut self, shift: T)

Performs the <<= operation. Read more
Source§

impl<'a, T> Shr<T> for &'a InnerUint
where T: Into<InnerUint>,

Source§

type Output = InnerUint

The resulting type after applying the >> operator.
Source§

fn shr(self, shift: T) -> InnerUint

Performs the >> operation. Read more
Source§

impl<T> Shr<T> for InnerUint
where T: Into<InnerUint>,

Source§

type Output = InnerUint

The resulting type after applying the >> operator.
Source§

fn shr(self, shift: T) -> InnerUint

Performs the >> operation. Read more
Source§

impl<T> ShrAssign<T> for InnerUint
where T: Into<InnerUint>,

Source§

fn shr_assign(&mut self, shift: T)

Performs the >>= operation. Read more
Source§

impl<'a, T> Sub<T> for &'a InnerUint
where T: Into<InnerUint>,

Source§

type Output = InnerUint

The resulting type after applying the - operator.
Source§

fn sub(self, other: T) -> InnerUint

Performs the - operation. Read more
Source§

impl<T> Sub<T> for InnerUint
where T: Into<InnerUint>,

Source§

type Output = InnerUint

The resulting type after applying the - operator.
Source§

fn sub(self, other: T) -> InnerUint

Performs the - operation. Read more
Source§

impl SubAssign for InnerUint

Source§

fn sub_assign(&mut self, other: InnerUint)

Performs the -= operation. Read more
Source§

impl TryFrom<InnerUint> for i128

Source§

type Error = &'static str

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

fn try_from(u: InnerUint) -> Result<i128, &'static str>

Performs the conversion.
Source§

impl TryFrom<InnerUint> for i16

Source§

type Error = &'static str

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

fn try_from(u: InnerUint) -> Result<i16, &'static str>

Performs the conversion.
Source§

impl TryFrom<InnerUint> for i32

Source§

type Error = &'static str

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

fn try_from(u: InnerUint) -> Result<i32, &'static str>

Performs the conversion.
Source§

impl TryFrom<InnerUint> for i64

Source§

type Error = &'static str

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

fn try_from(u: InnerUint) -> Result<i64, &'static str>

Performs the conversion.
Source§

impl TryFrom<InnerUint> for i8

Source§

type Error = &'static str

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

fn try_from(u: InnerUint) -> Result<i8, &'static str>

Performs the conversion.
Source§

impl TryFrom<InnerUint> for isize

Source§

type Error = &'static str

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

fn try_from(u: InnerUint) -> Result<isize, &'static str>

Performs the conversion.
Source§

impl TryFrom<InnerUint> for u128

Source§

type Error = &'static str

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

fn try_from(u: InnerUint) -> Result<u128, &'static str>

Performs the conversion.
Source§

impl TryFrom<InnerUint> for u16

Source§

type Error = &'static str

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

fn try_from(u: InnerUint) -> Result<u16, &'static str>

Performs the conversion.
Source§

impl TryFrom<InnerUint> for u32

Source§

type Error = &'static str

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

fn try_from(u: InnerUint) -> Result<u32, &'static str>

Performs the conversion.
Source§

impl TryFrom<InnerUint> for u64

Source§

type Error = &'static str

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

fn try_from(u: InnerUint) -> Result<u64, &'static str>

Performs the conversion.
Source§

impl TryFrom<InnerUint> for u8

Source§

type Error = &'static str

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

fn try_from(u: InnerUint) -> Result<u8, &'static str>

Performs the conversion.
Source§

impl TryFrom<InnerUint> for usize

Source§

type Error = &'static str

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

fn try_from(u: InnerUint) -> Result<usize, &'static str>

Performs the conversion.
Source§

impl UpperHex for InnerUint

Source§

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

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

impl Copy for InnerUint

Source§

impl Eq for InnerUint

Source§

impl StructuralPartialEq for InnerUint

Auto Trait Implementations§

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.