Type Alias sp_arithmetic::biguint::Double

source ·
pub type Double = u64;
Expand description

Representation of two limbs.

Trait Implementations§

source§

impl Bounded for u64

source§

fn min_value() -> u64

Returns the smallest finite number this type can represent
source§

fn max_value() -> u64

Returns the largest finite number this type can represent
source§

impl CheckedAdd for u64

source§

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

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

impl CheckedDiv for u64

source§

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

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

impl CheckedMul for u64

source§

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

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

impl CheckedNeg for u64

source§

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

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 u64

source§

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

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 u64

source§

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

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 u64

source§

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

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 u64

source§

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

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

impl MultiplyRational for u64

source§

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

source§

impl One for u64

source§

fn one() -> u64

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 TryFrom<BigUint> for u64

§

type Error = &'static str

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

fn try_from(value: BigUint) -> Result<u64, Self::Error>

Performs the conversion.
source§

impl Zero for u64

source§

fn zero() -> u64

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 u64