Type Alias sp_arithmetic::biguint::Single

source ·
pub type Single = u32;
Expand description

Representation of a single limb.

Trait Implementations§

source§

impl Bounded for u32

source§

fn min_value() -> u32

Returns the smallest finite number this type can represent
source§

fn max_value() -> u32

Returns the largest finite number this type can represent
source§

impl CheckedAdd for u32

source§

fn checked_add(&self, v: &u32) -> Option<u32>

Adds two numbers, checking for overflow. If overflow happens, None is returned.
source§

impl CheckedDiv for u32

source§

fn checked_div(&self, v: &u32) -> Option<u32>

Divides two numbers, checking for underflow, overflow and division by zero. If any of that happens, None is returned.
source§

impl CheckedMul for u32

source§

fn checked_mul(&self, v: &u32) -> Option<u32>

Multiplies two numbers, checking for underflow or overflow. If underflow or overflow happens, None is returned.
source§

impl CheckedNeg for u32

source§

fn checked_neg(&self) -> Option<u32>

Negates a number, returning None for results that can’t be represented, like signed MIN values that can’t be positive, or non-zero unsigned values that can’t be negative. Read more
source§

impl CheckedRem for u32

source§

fn checked_rem(&self, v: &u32) -> Option<u32>

Finds the remainder of dividing two numbers, checking for underflow, overflow and division by zero. If any of that happens, None is returned. Read more
source§

impl CheckedShl for u32

source§

fn checked_shl(&self, rhs: u32) -> Option<u32>

Checked shift left. Computes self << rhs, returning None if rhs is larger than or equal to the number of bits in self. Read more
source§

impl CheckedShr for u32

source§

fn checked_shr(&self, rhs: u32) -> Option<u32>

Checked shift right. Computes self >> rhs, returning None if rhs is larger than or equal to the number of bits in self. Read more
source§

impl CheckedSub for u32

source§

fn checked_sub(&self, v: &u32) -> Option<u32>

Subtracts two numbers, checking for underflow. If underflow happens, None is returned.
source§

impl MultiplyRational for u32

source§

fn multiply_rational(self, n: Self, d: Self, r: Rounding) -> Option<Self>

source§

impl One for u32

source§

fn one() -> u32

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 Zero for u32

source§

fn zero() -> u32

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 Unsigned for u32