Skip to main content

U

Struct U 

Source
#[repr(transparent)]
pub struct U(pub [u8; 32]);

Tuple Fields§

§0: [u8; 32]

Implementations§

Source§

impl U

Source

pub const ZERO: U

Source

pub const MAX: U

Source

pub const ONE: U

Source

pub fn is_true(&self) -> bool

Source

pub const fn is_zero(&self) -> bool

Source

pub fn abs_diff(&self, y: &U) -> U

Source

pub const fn const_addr(self) -> [u8; 20]

Source

pub const fn is_max_const(&self) -> bool

Source

pub fn is_max(&self) -> bool

Source

pub fn is_some(&self) -> bool

Source

pub fn trailing_zeros(&self) -> usize

Source

pub fn as_slice(&self) -> &[u8; 32]

Source

pub const fn from_slice_leftpad(x: &[u8]) -> Option<U>

Source

pub fn checked_add_opt(&self, y: &U) -> Option<U>

Source

pub fn checked_add(&self, y: &U) -> U

Source

pub fn checked_mul_opt(&self, y: &U) -> Option<U>

Source

pub fn checked_mul(&self, y: &U) -> U

Source

pub fn checked_sub_opt(&self, y: &U) -> Option<U>

Source

pub fn checked_sub(&self, y: &U) -> U

Source

pub fn checked_div_opt(&self, y: &U) -> Option<U>

Source

pub fn checked_div(&self, y: &U) -> U

Source

pub fn checked_pow(&self, exp: &U) -> Option<U>

Source

pub fn wrapping_add(&self, y: &U) -> U

Source

pub fn wrapping_sub(&self, y: &U) -> U

Source

pub fn wrapping_mul(&self, y: &U) -> U

Source

pub fn wrapping_div(&self, y: &U) -> U

Source

pub fn saturating_add(&self, y: &U) -> U

Source

pub fn saturating_sub(&self, y: &U) -> U

Source

pub fn saturating_mul(&self, y: &U) -> U

Source

pub fn saturating_div(&self, y: &U) -> U

Source

pub fn wrapping_neg(self) -> U

Source

pub fn mul_div(&self, y: &U, z: U) -> Option<(U, bool)>

Source

pub fn mul_div_round_up(&self, y: &U, z: U) -> Option<U>

Source

pub fn widening_mul_div(&self, y: &U, z: U) -> Option<(U, bool)>

Source

pub fn widening_mul_div_round_up(&self, y: &U, z: U) -> Option<U>

Source

pub fn mul_mod(&self, y: &U, z: &U) -> U

Source

pub fn add_mod(&self, y: &U, z: &U) -> U

Source

pub fn checked_rooti(self, x: u32) -> Option<U>

Source

pub fn from_hex(x: &str) -> Option<U>

Source

pub const fn const_from_hex(x: &[u8; 64]) -> Option<U>

Source§

impl U

Source

pub const fn const_1_slice(self) -> [u8; 1]

Source§

impl U

Source

pub const fn const_2_slice(self) -> [u8; 2]

Source§

impl U

Source

pub const fn const_3_slice(self) -> [u8; 3]

Source§

impl U

Source

pub const fn const_4_slice(self) -> [u8; 4]

Source§

impl U

Source

pub const fn const_5_slice(self) -> [u8; 5]

Source§

impl U

Source

pub const fn const_6_slice(self) -> [u8; 6]

Source§

impl U

Source

pub const fn const_7_slice(self) -> [u8; 7]

Source§

impl U

Source

pub const fn const_8_slice(self) -> [u8; 8]

Source§

impl U

Source

pub const fn const_9_slice(self) -> [u8; 9]

Source§

impl U

Source

pub const fn const_10_slice(self) -> [u8; 10]

Source§

impl U

Source

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

Source§

impl U

Source

pub const fn const_12_slice(self) -> [u8; 12]

Source§

impl U

Source

pub const fn const_13_slice(self) -> [u8; 13]

Source§

impl U

Source

pub const fn const_14_slice(self) -> [u8; 14]

Source§

impl U

Source

pub const fn const_15_slice(self) -> [u8; 15]

Source§

impl U

Source

pub const fn const_16_slice(self) -> [u8; 16]

Source§

impl U

Source

pub const fn const_17_slice(self) -> [u8; 17]

Source§

impl U

Source

pub const fn const_18_slice(self) -> [u8; 18]

Source§

impl U

Source

pub const fn const_19_slice(self) -> [u8; 19]

Source§

impl U

Source

pub const fn const_20_slice(self) -> [u8; 20]

Source§

impl U

Source

pub const fn const_21_slice(self) -> [u8; 21]

Source§

impl U

Source

pub const fn const_22_slice(self) -> [u8; 22]

Source§

impl U

Source

pub const fn const_23_slice(self) -> [u8; 23]

Source§

impl U

Source

pub const fn const_24_slice(self) -> [u8; 24]

Source§

impl U

Source

pub const fn const_25_slice(self) -> [u8; 25]

Source§

impl U

Source

pub const fn const_26_slice(self) -> [u8; 26]

Source§

impl U

Source

pub const fn const_27_slice(self) -> [u8; 27]

Source§

impl U

Source

pub const fn const_28_slice(self) -> [u8; 28]

Source§

impl U

Source

pub const fn const_29_slice(self) -> [u8; 29]

Source§

impl U

Source

pub const fn const_30_slice(self) -> [u8; 30]

Source§

impl U

Source

pub const fn const_31_slice(self) -> [u8; 31]

Source§

impl U

Source

pub const fn from_u8(x: u8) -> U

Source§

impl U

Source

pub const fn from_u16(x: u16) -> U

Source§

impl U

Source

pub const fn from_u32(x: u32) -> U

Source§

impl U

Source

pub const fn from_u64(x: u64) -> U

Source§

impl U

Source

pub const fn from_u128(x: u128) -> U

Source§

impl U

Source

pub const fn from_usize(x: usize) -> U

Trait Implementations§

Source§

impl Add for &U

Source§

type Output = U

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &U) -> U

Performs the + operation. Read more
Source§

impl Add for U

Source§

type Output = U

The resulting type after applying the + operator.
Source§

fn add(self, rhs: U) -> U

Performs the + operation. Read more
Source§

impl AddAssign for U

Source§

fn add_assign(&mut self, o: U)

Performs the += operation. Read more
Source§

impl BitAnd for U

Source§

type Output = U

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: U) -> <U as BitAnd>::Output

Performs the & operation. Read more
Source§

impl BitOr for U

Source§

type Output = U

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: U) -> <U as BitOr>::Output

Performs the | operation. Read more
Source§

impl BitOrAssign for U

Source§

fn bitor_assign(&mut self, rhs: U)

Performs the |= operation. Read more
Source§

impl BitXor for U

Source§

type Output = U

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: U) -> <U as BitXor>::Output

Performs the ^ operation. Read more
Source§

impl Clone for U

Source§

fn clone(&self) -> U

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 U

Source§

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

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

impl Default for U

Source§

fn default() -> U

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

impl Deref for U

Source§

type Target = [u8; 32]

The resulting type after dereferencing.
Source§

fn deref(&self) -> &<U as Deref>::Target

Dereferences the value.
Source§

impl DerefMut for U

Source§

fn deref_mut(&mut self) -> &mut <U as Deref>::Target

Mutably dereferences the value.
Source§

impl Display for U

Source§

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

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

impl Div for &U

Source§

type Output = U

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &U) -> U

Performs the / operation. Read more
Source§

impl Div for U

Source§

type Output = U

The resulting type after applying the / operator.
Source§

fn div(self, rhs: U) -> U

Performs the / operation. Read more
Source§

impl From<&[u8]> for U

Source§

fn from(x: &[u8]) -> U

Converts to this type from the input type.
Source§

impl From<&[u8; 1]> for U

Source§

fn from(x: &[u8; 1]) -> U

Converts to this type from the input type.
Source§

impl From<&[u8; 10]> for U

Source§

fn from(x: &[u8; 10]) -> U

Converts to this type from the input type.
Source§

impl From<&[u8; 11]> for U

Source§

fn from(x: &[u8; 11]) -> U

Converts to this type from the input type.
Source§

impl From<&[u8; 12]> for U

Source§

fn from(x: &[u8; 12]) -> U

Converts to this type from the input type.
Source§

impl From<&[u8; 13]> for U

Source§

fn from(x: &[u8; 13]) -> U

Converts to this type from the input type.
Source§

impl From<&[u8; 14]> for U

Source§

fn from(x: &[u8; 14]) -> U

Converts to this type from the input type.
Source§

impl From<&[u8; 15]> for U

Source§

fn from(x: &[u8; 15]) -> U

Converts to this type from the input type.
Source§

impl From<&[u8; 16]> for U

Source§

fn from(x: &[u8; 16]) -> U

Converts to this type from the input type.
Source§

impl From<&[u8; 17]> for U

Source§

fn from(x: &[u8; 17]) -> U

Converts to this type from the input type.
Source§

impl From<&[u8; 18]> for U

Source§

fn from(x: &[u8; 18]) -> U

Converts to this type from the input type.
Source§

impl From<&[u8; 19]> for U

Source§

fn from(x: &[u8; 19]) -> U

Converts to this type from the input type.
Source§

impl From<&[u8; 2]> for U

Source§

fn from(x: &[u8; 2]) -> U

Converts to this type from the input type.
Source§

impl From<&[u8; 20]> for U

Source§

fn from(x: &[u8; 20]) -> U

Converts to this type from the input type.
Source§

impl From<&[u8; 21]> for U

Source§

fn from(x: &[u8; 21]) -> U

Converts to this type from the input type.
Source§

impl From<&[u8; 22]> for U

Source§

fn from(x: &[u8; 22]) -> U

Converts to this type from the input type.
Source§

impl From<&[u8; 23]> for U

Source§

fn from(x: &[u8; 23]) -> U

Converts to this type from the input type.
Source§

impl From<&[u8; 24]> for U

Source§

fn from(x: &[u8; 24]) -> U

Converts to this type from the input type.
Source§

impl From<&[u8; 25]> for U

Source§

fn from(x: &[u8; 25]) -> U

Converts to this type from the input type.
Source§

impl From<&[u8; 26]> for U

Source§

fn from(x: &[u8; 26]) -> U

Converts to this type from the input type.
Source§

impl From<&[u8; 27]> for U

Source§

fn from(x: &[u8; 27]) -> U

Converts to this type from the input type.
Source§

impl From<&[u8; 28]> for U

Source§

fn from(x: &[u8; 28]) -> U

Converts to this type from the input type.
Source§

impl From<&[u8; 29]> for U

Source§

fn from(x: &[u8; 29]) -> U

Converts to this type from the input type.
Source§

impl From<&[u8; 3]> for U

Source§

fn from(x: &[u8; 3]) -> U

Converts to this type from the input type.
Source§

impl From<&[u8; 30]> for U

Source§

fn from(x: &[u8; 30]) -> U

Converts to this type from the input type.
Source§

impl From<&[u8; 31]> for U

Source§

fn from(x: &[u8; 31]) -> U

Converts to this type from the input type.
Source§

impl From<&[u8; 32]> for &U

Source§

fn from(x: &[u8; 32]) -> &U

Converts to this type from the input type.
Source§

impl From<&[u8; 4]> for U

Source§

fn from(x: &[u8; 4]) -> U

Converts to this type from the input type.
Source§

impl From<&[u8; 5]> for U

Source§

fn from(x: &[u8; 5]) -> U

Converts to this type from the input type.
Source§

impl From<&[u8; 6]> for U

Source§

fn from(x: &[u8; 6]) -> U

Converts to this type from the input type.
Source§

impl From<&[u8; 7]> for U

Source§

fn from(x: &[u8; 7]) -> U

Converts to this type from the input type.
Source§

impl From<&[u8; 8]> for U

Source§

fn from(x: &[u8; 8]) -> U

Converts to this type from the input type.
Source§

impl From<&[u8; 9]> for U

Source§

fn from(x: &[u8; 9]) -> U

Converts to this type from the input type.
Source§

impl From<&U> for [u8; 20]

Source§

fn from(x: &U) -> [u8; 20]

Converts to this type from the input type.
Source§

impl From<&U> for U

Source§

fn from(x: &U) -> U

Converts to this type from the input type.
Source§

impl From<[u8; 1]> for U

Source§

fn from(x: [u8; 1]) -> U

Converts to this type from the input type.
Source§

impl From<[u8; 10]> for U

Source§

fn from(x: [u8; 10]) -> U

Converts to this type from the input type.
Source§

impl From<[u8; 11]> for U

Source§

fn from(x: [u8; 11]) -> U

Converts to this type from the input type.
Source§

impl From<[u8; 12]> for U

Source§

fn from(x: [u8; 12]) -> U

Converts to this type from the input type.
Source§

impl From<[u8; 13]> for U

Source§

fn from(x: [u8; 13]) -> U

Converts to this type from the input type.
Source§

impl From<[u8; 14]> for U

Source§

fn from(x: [u8; 14]) -> U

Converts to this type from the input type.
Source§

impl From<[u8; 15]> for U

Source§

fn from(x: [u8; 15]) -> U

Converts to this type from the input type.
Source§

impl From<[u8; 16]> for U

Source§

fn from(x: [u8; 16]) -> U

Converts to this type from the input type.
Source§

impl From<[u8; 17]> for U

Source§

fn from(x: [u8; 17]) -> U

Converts to this type from the input type.
Source§

impl From<[u8; 18]> for U

Source§

fn from(x: [u8; 18]) -> U

Converts to this type from the input type.
Source§

impl From<[u8; 19]> for U

Source§

fn from(x: [u8; 19]) -> U

Converts to this type from the input type.
Source§

impl From<[u8; 2]> for U

Source§

fn from(x: [u8; 2]) -> U

Converts to this type from the input type.
Source§

impl From<[u8; 20]> for U

Source§

fn from(x: [u8; 20]) -> U

Converts to this type from the input type.
Source§

impl From<[u8; 21]> for U

Source§

fn from(x: [u8; 21]) -> U

Converts to this type from the input type.
Source§

impl From<[u8; 22]> for U

Source§

fn from(x: [u8; 22]) -> U

Converts to this type from the input type.
Source§

impl From<[u8; 23]> for U

Source§

fn from(x: [u8; 23]) -> U

Converts to this type from the input type.
Source§

impl From<[u8; 24]> for U

Source§

fn from(x: [u8; 24]) -> U

Converts to this type from the input type.
Source§

impl From<[u8; 25]> for U

Source§

fn from(x: [u8; 25]) -> U

Converts to this type from the input type.
Source§

impl From<[u8; 26]> for U

Source§

fn from(x: [u8; 26]) -> U

Converts to this type from the input type.
Source§

impl From<[u8; 27]> for U

Source§

fn from(x: [u8; 27]) -> U

Converts to this type from the input type.
Source§

impl From<[u8; 28]> for U

Source§

fn from(x: [u8; 28]) -> U

Converts to this type from the input type.
Source§

impl From<[u8; 29]> for U

Source§

fn from(x: [u8; 29]) -> U

Converts to this type from the input type.
Source§

impl From<[u8; 3]> for U

Source§

fn from(x: [u8; 3]) -> U

Converts to this type from the input type.
Source§

impl From<[u8; 30]> for U

Source§

fn from(x: [u8; 30]) -> U

Converts to this type from the input type.
Source§

impl From<[u8; 31]> for U

Source§

fn from(x: [u8; 31]) -> U

Converts to this type from the input type.
Source§

impl From<[u8; 32]> for U

Source§

fn from(x: [u8; 32]) -> U

Converts to this type from the input type.
Source§

impl From<[u8; 4]> for U

Source§

fn from(x: [u8; 4]) -> U

Converts to this type from the input type.
Source§

impl From<[u8; 5]> for U

Source§

fn from(x: [u8; 5]) -> U

Converts to this type from the input type.
Source§

impl From<[u8; 6]> for U

Source§

fn from(x: [u8; 6]) -> U

Converts to this type from the input type.
Source§

impl From<[u8; 7]> for U

Source§

fn from(x: [u8; 7]) -> U

Converts to this type from the input type.
Source§

impl From<[u8; 8]> for U

Source§

fn from(x: [u8; 8]) -> U

Converts to this type from the input type.
Source§

impl From<[u8; 9]> for U

Source§

fn from(x: [u8; 9]) -> U

Converts to this type from the input type.
Source§

impl From<U> for [u8; 1]

Source§

fn from(x: U) -> [u8; 1]

Converts to this type from the input type.
Source§

impl From<U> for [u8; 10]

Source§

fn from(x: U) -> [u8; 10]

Converts to this type from the input type.
Source§

impl From<U> for [u8; 11]

Source§

fn from(x: U) -> [u8; 11]

Converts to this type from the input type.
Source§

impl From<U> for [u8; 12]

Source§

fn from(x: U) -> [u8; 12]

Converts to this type from the input type.
Source§

impl From<U> for [u8; 13]

Source§

fn from(x: U) -> [u8; 13]

Converts to this type from the input type.
Source§

impl From<U> for [u8; 14]

Source§

fn from(x: U) -> [u8; 14]

Converts to this type from the input type.
Source§

impl From<U> for [u8; 15]

Source§

fn from(x: U) -> [u8; 15]

Converts to this type from the input type.
Source§

impl From<U> for [u8; 16]

Source§

fn from(x: U) -> [u8; 16]

Converts to this type from the input type.
Source§

impl From<U> for [u8; 17]

Source§

fn from(x: U) -> [u8; 17]

Converts to this type from the input type.
Source§

impl From<U> for [u8; 18]

Source§

fn from(x: U) -> [u8; 18]

Converts to this type from the input type.
Source§

impl From<U> for [u8; 19]

Source§

fn from(x: U) -> [u8; 19]

Converts to this type from the input type.
Source§

impl From<U> for [u8; 2]

Source§

fn from(x: U) -> [u8; 2]

Converts to this type from the input type.
Source§

impl From<U> for [u8; 20]

Source§

fn from(x: U) -> [u8; 20]

Converts to this type from the input type.
Source§

impl From<U> for [u8; 21]

Source§

fn from(x: U) -> [u8; 21]

Converts to this type from the input type.
Source§

impl From<U> for [u8; 22]

Source§

fn from(x: U) -> [u8; 22]

Converts to this type from the input type.
Source§

impl From<U> for [u8; 23]

Source§

fn from(x: U) -> [u8; 23]

Converts to this type from the input type.
Source§

impl From<U> for [u8; 24]

Source§

fn from(x: U) -> [u8; 24]

Converts to this type from the input type.
Source§

impl From<U> for [u8; 25]

Source§

fn from(x: U) -> [u8; 25]

Converts to this type from the input type.
Source§

impl From<U> for [u8; 26]

Source§

fn from(x: U) -> [u8; 26]

Converts to this type from the input type.
Source§

impl From<U> for [u8; 27]

Source§

fn from(x: U) -> [u8; 27]

Converts to this type from the input type.
Source§

impl From<U> for [u8; 28]

Source§

fn from(x: U) -> [u8; 28]

Converts to this type from the input type.
Source§

impl From<U> for [u8; 29]

Source§

fn from(x: U) -> [u8; 29]

Converts to this type from the input type.
Source§

impl From<U> for [u8; 3]

Source§

fn from(x: U) -> [u8; 3]

Converts to this type from the input type.
Source§

impl From<U> for [u8; 30]

Source§

fn from(x: U) -> [u8; 30]

Converts to this type from the input type.
Source§

impl From<U> for [u8; 31]

Source§

fn from(x: U) -> [u8; 31]

Converts to this type from the input type.
Source§

impl From<U> for [u8; 32]

Source§

fn from(x: U) -> [u8; 32]

Converts to this type from the input type.
Source§

impl From<U> for [u8; 4]

Source§

fn from(x: U) -> [u8; 4]

Converts to this type from the input type.
Source§

impl From<U> for [u8; 5]

Source§

fn from(x: U) -> [u8; 5]

Converts to this type from the input type.
Source§

impl From<U> for [u8; 6]

Source§

fn from(x: U) -> [u8; 6]

Converts to this type from the input type.
Source§

impl From<U> for [u8; 7]

Source§

fn from(x: U) -> [u8; 7]

Converts to this type from the input type.
Source§

impl From<U> for [u8; 8]

Source§

fn from(x: U) -> [u8; 8]

Converts to this type from the input type.
Source§

impl From<U> for [u8; 9]

Source§

fn from(x: U) -> [u8; 9]

Converts to this type from the input type.
Source§

impl From<bool> for U

Source§

fn from(x: bool) -> U

Converts to this type from the input type.
Source§

impl From<u128> for U

Source§

fn from(x: u128) -> U

Converts to this type from the input type.
Source§

impl From<u16> for U

Source§

fn from(x: u16) -> U

Converts to this type from the input type.
Source§

impl From<u32> for U

Source§

fn from(x: u32) -> U

Converts to this type from the input type.
Source§

impl From<u64> for U

Source§

fn from(x: u64) -> U

Converts to this type from the input type.
Source§

impl From<u8> for U

Source§

fn from(x: u8) -> U

Converts to this type from the input type.
Source§

impl From<usize> for U

Source§

fn from(x: usize) -> U

Converts to this type from the input type.
Source§

impl FromStr for U

Source§

type Err = UFromStrErr

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

fn from_str(s: &str) -> Result<U, <U as FromStr>::Err>

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

impl Hash for U

Source§

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

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 Index<usize> for U

Source§

type Output = u8

The returned type after indexing.
Source§

fn index(&self, index: usize) -> &<U as Index<usize>>::Output

Performs the indexing (container[index]) operation. Read more
Source§

impl IndexMut<usize> for U

Source§

fn index_mut(&mut self, index: usize) -> &mut <U as Index<usize>>::Output

Performs the mutable indexing (container[index]) operation. Read more
Source§

impl LowerHex for U

Source§

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

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

impl Mul for &U

Source§

type Output = U

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &U) -> U

Performs the * operation. Read more
Source§

impl Mul for U

Source§

type Output = U

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: U) -> U

Performs the * operation. Read more
Source§

impl MulAssign for U

Source§

fn mul_assign(&mut self, rhs: U)

Performs the *= operation. Read more
Source§

impl Neg for U

Source§

type Output = U

The resulting type after applying the - operator.
Source§

fn neg(self) -> U

Performs the unary - operation. Read more
Source§

impl Not for U

Source§

type Output = U

The resulting type after applying the ! operator.
Source§

fn not(self) -> <U as Not>::Output

Performs the unary ! operation. Read more
Source§

impl One for U

Source§

fn one() -> U

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

fn set_one(&mut self)

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

fn is_one(&self) -> bool
where Self: PartialEq,

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

impl Ord for U

Source§

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

Source§

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

Source§

fn partial_cmp(&self, other: &U) -> 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 Rem for &U

Source§

type Output = U

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: &U) -> U

Performs the % operation. Read more
Source§

impl Rem for U

Source§

type Output = U

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: U) -> U

Performs the % operation. Read more
Source§

impl Shl<usize> for U

Source§

type Output = U

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

fn shl(self, shift: usize) -> <U as Shl<usize>>::Output

Performs the << operation. Read more
Source§

impl ShlAssign<usize> for U

Source§

fn shl_assign(&mut self, rhs: usize)

Performs the <<= operation. Read more
Source§

impl Shr<usize> for U

Source§

type Output = U

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

fn shr(self, shift: usize) -> <U as Shr<usize>>::Output

Performs the >> operation. Read more
Source§

impl ShrAssign<usize> for U

Source§

fn shr_assign(&mut self, rhs: usize)

Performs the >>= operation. Read more
Source§

impl Sub for &U

Source§

type Output = U

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &U) -> U

Performs the - operation. Read more
Source§

impl Sub for U

Source§

type Output = U

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: U) -> U

Performs the - operation. Read more
Source§

impl SubAssign for U

Source§

fn sub_assign(&mut self, o: U)

Performs the -= operation. Read more
Source§

impl UpperHex for U

Source§

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

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

impl Zero for U

Source§

fn zero() -> U

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 U

Source§

impl Eq for U

Source§

impl StructuralPartialEq for U

Auto Trait Implementations§

§

impl Freeze for U

§

impl RefUnwindSafe for U

§

impl Send for U

§

impl Sync for U

§

impl Unpin for U

§

impl UnsafeUnpin for U

§

impl UnwindSafe for U

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<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
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, 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>,