Struct Relaxed

Source
pub struct Relaxed(/* private fields */);
Expand description

An arbitrary precision rational number without strict reduction.

This struct is almost the same as RBig, except for that the numerator and the denominator are allowed to have common divisors other than a power of 2. This allows faster computation because Gcd is not required for each operation.

Since the representation is not canonicalized, Hash is not implemented for Relaxed. Please use RBig if you want to store the rational number in a hash set, or use num_order::NumHash.

§Conversion from/to RBig

To convert from RBig, use RBig::relax(). To convert to RBig, use Relaxed::canonicalize().

Implementations§

Source§

impl Relaxed

Source

pub fn to_f32_fast(&self) -> f32

Convert the rational number to a f32.

See RBig::to_f32_fast for details.

Source

pub fn to_f64_fast(&self) -> f64

Convert the rational number to a f64.

See RBig::to_f64_fast for details.

Source

pub fn to_f32(&self) -> Approximation<f32, Sign>

Convert the rational number to a f32 with guaranteed correct rounding.

See RBig::to_f32 for details.

Source

pub fn to_f64(&self) -> Approximation<f64, Sign>

Convert the rational number to a f64 with guaranteed correct rounding.

See RBig::to_f64 for details.

Source

pub fn to_int(&self) -> Approximation<IBig, Self>

Convert the rational number to am IBig.

See RBig::to_int for details.

Source§

impl Relaxed

Source

pub fn sqr(&self) -> Self

Compute the square of the number (self * self).

See RBig::sqr for details.

Source

pub fn cubic(&self) -> Self

Compute the cubic of the number (self * self * self).

See RBig::cubic for details.

Source

pub fn pow(&self, n: usize) -> Self

Raise this number to a power of n.

See RBig::pow for details.

Source§

impl Relaxed

Source

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

Convert a string in a given base to Relaxed.

See RBig::from_str_radix for details.

Source

pub fn from_str_with_radix_prefix(src: &str) -> Result<(Self, u32), ParseError>

Convert a string with optional radix prefixes to RBig, return the parsed integer and radix.

See RBig::from_str_with_radix_prefix for details.

Source§

impl Relaxed

Source

pub const ZERO: Self

Relaxed with value 0

Source

pub const ONE: Self

Relaxed with value 1

Source

pub const NEG_ONE: Self

Relaxed with value -1

Source

pub fn from_parts(numerator: IBig, denominator: UBig) -> Self

Create a rational number from a signed numerator and a signed denominator

See RBig::from_parts for details.

Source

pub fn into_parts(self) -> (IBig, UBig)

Convert the rational number into (numerator, denumerator) parts.

See RBig::into_parts for details.

Source

pub fn from_parts_signed(numerator: IBig, denominator: IBig) -> Self

Create a rational number from a signed numerator and a signed denominator

See RBig::from_parts_signed for details.

Source

pub const fn from_parts_const( sign: Sign, numerator: DoubleWord, denominator: DoubleWord, ) -> Self

Create a rational number in a const context

See RBig::from_parts_const for details.

Source

pub fn numerator(&self) -> &IBig

Get the numerator of the rational number

See RBig::numerator for details.

Source

pub fn denominator(&self) -> &UBig

Get the denominator of the rational number

See RBig::denominator for details.

Source

pub fn canonicalize(self) -> RBig

Convert this rational number into an RBig version

§Examples
assert_eq!(Relaxed::ONE.canonicalize(), RBig::ONE);

let r = Relaxed::from_parts(10.into(), 5u8.into());
assert_eq!(r.canonicalize().numerator(), &IBig::from(2));
Source

pub const fn is_zero(&self) -> bool

Check whether the number is 0

See RBig::is_zero for details.

Source

pub fn is_one(&self) -> bool

Check whether the number is 1

See RBig::is_one for details.

Source§

impl Relaxed

Source

pub fn split_at_point(self) -> (IBig, Self)

Split the rational number into integral and fractional parts (split at the radix point).

See RBig::split_at_point for details.

Source

pub fn ceil(&self) -> IBig

Compute the smallest integer that is greater than this number.

See RBig::ceil for details.

Source

pub fn floor(&self) -> IBig

Compute the largest integer that is less than or equal to this number.

See RBig::floor for details.

Source

pub fn round(&self) -> IBig

Compute the integer that closest to this number.

See RBig::round for details.

Source

pub fn trunc(&self) -> IBig

Returns the integral part of the rational number.

See RBig::trunc for details.

Source

pub fn fract(&self) -> Self

Returns the fractional part of the rational number

See RBig::fract for details.

Source§

impl Relaxed

Source

pub const fn sign(&self) -> Sign

Get the sign of the number. Zero value has a positive sign.

See RBig::sign for details.

Source

pub const fn signum(&self) -> Self

A number representing the sign of self.

See RBig::signum for details.

Source§

impl Relaxed

Source

pub fn to_float<R: Round, const B: Word>( &self, precision: usize, ) -> Rounded<FBig<R, B>>

Convert the rational number to a FBig with guaranteed correct rounding.

See RBig::to_float for details.

Trait Implementations§

Source§

impl Abs for Relaxed

Source§

type Output = Relaxed

Source§

fn abs(self) -> Self::Output

Source§

impl AbsEq for Relaxed

Source§

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

👎Deprecated since 0.5.0: AbsEq will be moved in AbsOrd in v0.5
Source§

impl<R: Round, const B: Word> AbsOrd<FBig<R, B>> for Relaxed

Source§

fn abs_cmp(&self, other: &FBig<R, B>) -> Ordering

Source§

impl AbsOrd<IBig> for Relaxed

Source§

fn abs_cmp(&self, other: &IBig) -> Ordering

Source§

impl AbsOrd<RBig> for Relaxed

Source§

fn abs_cmp(&self, other: &RBig) -> Ordering

Source§

impl<R: Round, const B: Word> AbsOrd<Relaxed> for FBig<R, B>

Source§

fn abs_cmp(&self, other: &Relaxed) -> Ordering

Source§

impl AbsOrd<Relaxed> for IBig

Source§

fn abs_cmp(&self, other: &Relaxed) -> Ordering

Source§

impl AbsOrd<Relaxed> for RBig

Source§

fn abs_cmp(&self, other: &Relaxed) -> Ordering

Source§

impl AbsOrd<Relaxed> for UBig

Source§

fn abs_cmp(&self, other: &Relaxed) -> Ordering

Source§

impl AbsOrd<UBig> for Relaxed

Source§

fn abs_cmp(&self, other: &UBig) -> Ordering

Source§

impl AbsOrd for Relaxed

Source§

fn abs_cmp(&self, other: &Relaxed) -> Ordering

Source§

impl<'l, 'r> Add<&'r IBig> for &'l Relaxed

Source§

type Output = Relaxed

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &IBig) -> Relaxed

Performs the + operation. Read more
Source§

impl<'r> Add<&'r IBig> for Relaxed

Source§

type Output = Relaxed

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &IBig) -> Relaxed

Performs the + operation. Read more
Source§

impl<'l, 'r> Add<&'r Relaxed> for &'l IBig

Source§

type Output = Relaxed

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl<'l, 'r> Add<&'r Relaxed> for &'l Relaxed

Source§

type Output = Relaxed

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl<'l, 'r> Add<&'r Relaxed> for &'l UBig

Source§

type Output = Relaxed

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl<'r> Add<&'r Relaxed> for IBig

Source§

type Output = Relaxed

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl<'r> Add<&'r Relaxed> for Relaxed

Source§

type Output = Relaxed

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl<'r> Add<&'r Relaxed> for UBig

Source§

type Output = Relaxed

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl<'l, 'r> Add<&'r UBig> for &'l Relaxed

Source§

type Output = Relaxed

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &UBig) -> Relaxed

Performs the + operation. Read more
Source§

impl<'r> Add<&'r UBig> for Relaxed

Source§

type Output = Relaxed

The resulting type after applying the + operator.
Source§

fn add(self, rhs: &UBig) -> Relaxed

Performs the + operation. Read more
Source§

impl<'l> Add<IBig> for &'l Relaxed

Source§

type Output = Relaxed

The resulting type after applying the + operator.
Source§

fn add(self, rhs: IBig) -> Relaxed

Performs the + operation. Read more
Source§

impl Add<IBig> for Relaxed

Source§

type Output = Relaxed

The resulting type after applying the + operator.
Source§

fn add(self, rhs: IBig) -> Relaxed

Performs the + operation. Read more
Source§

impl<'l> Add<Relaxed> for &'l IBig

Source§

type Output = Relaxed

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl<'l> Add<Relaxed> for &'l Relaxed

Source§

type Output = Relaxed

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl<'l> Add<Relaxed> for &'l UBig

Source§

type Output = Relaxed

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add<Relaxed> for IBig

Source§

type Output = Relaxed

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add<Relaxed> for UBig

Source§

type Output = Relaxed

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl<'l> Add<UBig> for &'l Relaxed

Source§

type Output = Relaxed

The resulting type after applying the + operator.
Source§

fn add(self, rhs: UBig) -> Relaxed

Performs the + operation. Read more
Source§

impl Add<UBig> for Relaxed

Source§

type Output = Relaxed

The resulting type after applying the + operator.
Source§

fn add(self, rhs: UBig) -> Relaxed

Performs the + operation. Read more
Source§

impl Add for Relaxed

Source§

type Output = Relaxed

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl AddAssign<&Relaxed> for Relaxed

Source§

fn add_assign(&mut self, rhs: &Relaxed)

Performs the += operation. Read more
Source§

impl AddAssign for Relaxed

Source§

fn add_assign(&mut self, rhs: Relaxed)

Performs the += operation. Read more
Source§

impl Clone for Relaxed

Source§

fn clone(&self) -> Relaxed

Returns a duplicate of the value. Read more
Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for Relaxed

Source§

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

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

impl Default for Relaxed

Source§

fn default() -> Self

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

impl<'de> Deserialize<'de> for Relaxed

Source§

fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Display for Relaxed

Source§

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

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

impl Distribution<Relaxed> for Open01

Source§

fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Relaxed

Generate a random value of T, using rng as the source of randomness.
Source§

fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T>
where R: Rng, Self: Sized,

Create an iterator that generates random values of T, using rng as the source of randomness. Read more
Source§

fn map<F, S>(self, func: F) -> DistMap<Self, F, T, S>
where F: Fn(T) -> S, Self: Sized,

Create a distribution of values of ‘S’ by mapping the output of Self through the closure F Read more
Source§

impl Distribution<Relaxed> for OpenClosed01

Source§

fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Relaxed

Generate a random value of T, using rng as the source of randomness.
Source§

fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T>
where R: Rng, Self: Sized,

Create an iterator that generates random values of T, using rng as the source of randomness. Read more
Source§

fn map<F, S>(self, func: F) -> DistMap<Self, F, T, S>
where F: Fn(T) -> S, Self: Sized,

Create a distribution of values of ‘S’ by mapping the output of Self through the closure F Read more
Source§

impl Distribution<Relaxed> for Standard

Source§

fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Relaxed

Generate a random value of T, using rng as the source of randomness.
Source§

fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T>
where R: Rng, Self: Sized,

Create an iterator that generates random values of T, using rng as the source of randomness. Read more
Source§

fn map<F, S>(self, func: F) -> DistMap<Self, F, T, S>
where F: Fn(T) -> S, Self: Sized,

Create a distribution of values of ‘S’ by mapping the output of Self through the closure F Read more
Source§

impl<'a> Distribution<Relaxed> for Uniform01<'a>

Source§

fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Relaxed

Generate a random value of T, using rng as the source of randomness.
Source§

fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T>
where R: Rng, Self: Sized,

Create an iterator that generates random values of T, using rng as the source of randomness. Read more
Source§

fn map<F, S>(self, func: F) -> DistMap<Self, F, T, S>
where F: Fn(T) -> S, Self: Sized,

Create a distribution of values of ‘S’ by mapping the output of Self through the closure F Read more
Source§

impl<'l, 'r> Div<&'r IBig> for &'l Relaxed

Source§

type Output = Relaxed

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &IBig) -> Relaxed

Performs the / operation. Read more
Source§

impl<'r> Div<&'r IBig> for Relaxed

Source§

type Output = Relaxed

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &IBig) -> Relaxed

Performs the / operation. Read more
Source§

impl<'l, 'r> Div<&'r Relaxed> for &'l Relaxed

Source§

type Output = Relaxed

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl<'r> Div<&'r Relaxed> for Relaxed

Source§

type Output = Relaxed

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl<'l, 'r> Div<&'r UBig> for &'l Relaxed

Source§

type Output = Relaxed

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &UBig) -> Relaxed

Performs the / operation. Read more
Source§

impl<'r> Div<&'r UBig> for Relaxed

Source§

type Output = Relaxed

The resulting type after applying the / operator.
Source§

fn div(self, rhs: &UBig) -> Relaxed

Performs the / operation. Read more
Source§

impl<'l> Div<IBig> for &'l Relaxed

Source§

type Output = Relaxed

The resulting type after applying the / operator.
Source§

fn div(self, rhs: IBig) -> Relaxed

Performs the / operation. Read more
Source§

impl Div<IBig> for Relaxed

Source§

type Output = Relaxed

The resulting type after applying the / operator.
Source§

fn div(self, rhs: IBig) -> Relaxed

Performs the / operation. Read more
Source§

impl<'l> Div<Relaxed> for &'l Relaxed

Source§

type Output = Relaxed

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl<'l> Div<UBig> for &'l Relaxed

Source§

type Output = Relaxed

The resulting type after applying the / operator.
Source§

fn div(self, rhs: UBig) -> Relaxed

Performs the / operation. Read more
Source§

impl Div<UBig> for Relaxed

Source§

type Output = Relaxed

The resulting type after applying the / operator.
Source§

fn div(self, rhs: UBig) -> Relaxed

Performs the / operation. Read more
Source§

impl Div for Relaxed

Source§

type Output = Relaxed

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl DivAssign<&Relaxed> for Relaxed

Source§

fn div_assign(&mut self, rhs: &Relaxed)

Performs the /= operation. Read more
Source§

impl DivAssign for Relaxed

Source§

fn div_assign(&mut self, rhs: Relaxed)

Performs the /= operation. Read more
Source§

impl<'l, 'r> DivEuclid<&'r Relaxed> for &'l Relaxed

Source§

impl<'r> DivEuclid<&'r Relaxed> for Relaxed

Source§

impl<'l> DivEuclid<Relaxed> for &'l Relaxed

Source§

impl DivEuclid for Relaxed

Source§

impl<'l, 'r> DivRemEuclid<&'r Relaxed> for &'l Relaxed

Source§

impl<'r> DivRemEuclid<&'r Relaxed> for Relaxed

Source§

impl<'l> DivRemEuclid<Relaxed> for &'l Relaxed

Source§

impl DivRemEuclid for Relaxed

Source§

impl EstimatedLog2 for Relaxed

Source§

fn log2_bounds(&self) -> (f32, f32)

Estimate the bounds of the binary logarithm. Read more
Source§

fn log2_est(&self) -> f32

Estimate the value of the binary logarithm. It’s calculated as the average of log2_bounds by default.
Source§

impl Euclid for Relaxed

Source§

fn div_euclid(&self, v: &Self) -> Self

Calculates Euclidean division, the matching method for rem_euclid. Read more
Source§

fn rem_euclid(&self, v: &Self) -> Self

Calculates the least nonnegative remainder of self (mod v). Read more
Source§

fn div_rem_euclid(&self, v: &Self) -> (Self, Self)

Returns both the quotient and remainder from Euclidean division. Read more
Source§

impl From<IBig> for Relaxed

Source§

fn from(v: IBig) -> Self

Converts to this type from the input type.
Source§

impl<R: Round, const B: Word> From<Relaxed> for FBig<R, B>

Source§

fn from(v: Relaxed) -> Self

Converts to this type from the input type.
Source§

impl From<UBig> for Relaxed

Source§

fn from(v: UBig) -> Self

Converts to this type from the input type.
Source§

impl From<i128> for Relaxed

Source§

fn from(v: i128) -> Self

Converts to this type from the input type.
Source§

impl From<i16> for Relaxed

Source§

fn from(v: i16) -> Self

Converts to this type from the input type.
Source§

impl From<i32> for Relaxed

Source§

fn from(v: i32) -> Self

Converts to this type from the input type.
Source§

impl From<i64> for Relaxed

Source§

fn from(v: i64) -> Self

Converts to this type from the input type.
Source§

impl From<i8> for Relaxed

Source§

fn from(v: i8) -> Self

Converts to this type from the input type.
Source§

impl From<isize> for Relaxed

Source§

fn from(v: isize) -> Self

Converts to this type from the input type.
Source§

impl From<u128> for Relaxed

Source§

fn from(v: u128) -> Self

Converts to this type from the input type.
Source§

impl From<u16> for Relaxed

Source§

fn from(v: u16) -> Self

Converts to this type from the input type.
Source§

impl From<u32> for Relaxed

Source§

fn from(v: u32) -> Self

Converts to this type from the input type.
Source§

impl From<u64> for Relaxed

Source§

fn from(v: u64) -> Self

Converts to this type from the input type.
Source§

impl From<u8> for Relaxed

Source§

fn from(v: u8) -> Self

Converts to this type from the input type.
Source§

impl From<usize> for Relaxed

Source§

fn from(v: usize) -> Self

Converts to this type from the input type.
Source§

impl FromPrimitive for Relaxed

Source§

fn from_i8(n: i8) -> Option<Self>

Converts an i8 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_i16(n: i16) -> Option<Self>

Converts an i16 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_i32(n: i32) -> Option<Self>

Converts an i32 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_i64(n: i64) -> Option<Self>

Converts an i64 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_i128(n: i128) -> Option<Self>

Converts an i128 to return an optional value of this type. If the value cannot be represented by this type, then None is returned. Read more
Source§

fn from_isize(n: isize) -> Option<Self>

Converts an isize to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_u8(n: u8) -> Option<Self>

Converts an u8 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_u16(n: u16) -> Option<Self>

Converts an u16 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_u32(n: u32) -> Option<Self>

Converts an u32 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_u64(n: u64) -> Option<Self>

Converts an u64 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_u128(n: u128) -> Option<Self>

Converts an u128 to return an optional value of this type. If the value cannot be represented by this type, then None is returned. Read more
Source§

fn from_usize(n: usize) -> Option<Self>

Converts a usize to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_f32(f: f32) -> Option<Self>

Converts a f32 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_f64(f: f64) -> Option<Self>

Converts a f64 to return an optional value of this type. If the value cannot be represented by this type, then None is returned. Read more
Source§

impl FromStr for Relaxed

Source§

type Err = ParseError

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

fn from_str(s: &str) -> Result<Self, ParseError>

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

impl Inverse for &Relaxed

Source§

impl Inverse for Relaxed

Source§

impl<'l, 'r> Mul<&'r IBig> for &'l Relaxed

Source§

type Output = Relaxed

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &IBig) -> Relaxed

Performs the * operation. Read more
Source§

impl<'r> Mul<&'r IBig> for Relaxed

Source§

type Output = Relaxed

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &IBig) -> Relaxed

Performs the * operation. Read more
Source§

impl<'l, 'r> Mul<&'r Relaxed> for &'l IBig

Source§

type Output = Relaxed

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<'l, 'r> Mul<&'r Relaxed> for &'l Relaxed

Source§

type Output = Relaxed

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<'l, 'r> Mul<&'r Relaxed> for &'l UBig

Source§

type Output = Relaxed

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<'r> Mul<&'r Relaxed> for IBig

Source§

type Output = Relaxed

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<'r> Mul<&'r Relaxed> for Relaxed

Source§

type Output = Relaxed

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<'r> Mul<&'r Relaxed> for UBig

Source§

type Output = Relaxed

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<'l, 'r> Mul<&'r UBig> for &'l Relaxed

Source§

type Output = Relaxed

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &UBig) -> Relaxed

Performs the * operation. Read more
Source§

impl<'r> Mul<&'r UBig> for Relaxed

Source§

type Output = Relaxed

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: &UBig) -> Relaxed

Performs the * operation. Read more
Source§

impl<'l> Mul<IBig> for &'l Relaxed

Source§

type Output = Relaxed

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: IBig) -> Relaxed

Performs the * operation. Read more
Source§

impl Mul<IBig> for Relaxed

Source§

type Output = Relaxed

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: IBig) -> Relaxed

Performs the * operation. Read more
Source§

impl<'l> Mul<Relaxed> for &'l IBig

Source§

type Output = Relaxed

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<'l> Mul<Relaxed> for &'l Relaxed

Source§

type Output = Relaxed

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<'l> Mul<Relaxed> for &'l UBig

Source§

type Output = Relaxed

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<Relaxed> for IBig

Source§

type Output = Relaxed

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<Relaxed> for UBig

Source§

type Output = Relaxed

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<Sign> for Relaxed

Source§

type Output = Relaxed

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl<'l> Mul<UBig> for &'l Relaxed

Source§

type Output = Relaxed

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: UBig) -> Relaxed

Performs the * operation. Read more
Source§

impl Mul<UBig> for Relaxed

Source§

type Output = Relaxed

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: UBig) -> Relaxed

Performs the * operation. Read more
Source§

impl Mul for Relaxed

Source§

type Output = Relaxed

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl MulAssign<&Relaxed> for Relaxed

Source§

fn mul_assign(&mut self, rhs: &Relaxed)

Performs the *= operation. Read more
Source§

impl MulAssign for Relaxed

Source§

fn mul_assign(&mut self, rhs: Relaxed)

Performs the *= operation. Read more
Source§

impl Neg for &Relaxed

Source§

type Output = Relaxed

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
Source§

impl Neg for Relaxed

Source§

type Output = Relaxed

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self::Output

Performs the unary - operation. Read more
Source§

impl Num for Relaxed

Source§

type FromStrRadixErr = ParseError

Source§

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

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

impl NumHash for Relaxed

Source§

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

Consistent Hash::hash on different numeric types. Read more
Source§

impl<R: Round, const B: Word> NumOrd<FBig<R, B>> for Relaxed

Source§

fn num_cmp(&self, other: &FBig<R, B>) -> Ordering

Ord::cmp on different numeric types. It panics if either of the numeric values contains NaN.
Source§

fn num_partial_cmp(&self, other: &FBig<R, B>) -> Option<Ordering>

PartialOrd::partial_cmp on different numeric types
Source§

fn num_eq(&self, other: &Other) -> bool

PartialEq::eq on different numeric types
Source§

fn num_ne(&self, other: &Other) -> bool

PartialEq::ne on different numeric types
Source§

fn num_lt(&self, other: &Other) -> bool

PartialOrd::lt on different numeric types
Source§

fn num_le(&self, other: &Other) -> bool

PartialOrd::le on different numeric types
Source§

fn num_gt(&self, other: &Other) -> bool

PartialOrd::gt on different numeric types
Source§

fn num_ge(&self, other: &Other) -> bool

PartialOrd::ge on different numeric types
Source§

impl NumOrd<IBig> for Relaxed

Source§

fn num_cmp(&self, other: &IBig) -> Ordering

Ord::cmp on different numeric types. It panics if either of the numeric values contains NaN.
Source§

fn num_partial_cmp(&self, other: &IBig) -> Option<Ordering>

PartialOrd::partial_cmp on different numeric types
Source§

fn num_eq(&self, other: &Other) -> bool

PartialEq::eq on different numeric types
Source§

fn num_ne(&self, other: &Other) -> bool

PartialEq::ne on different numeric types
Source§

fn num_lt(&self, other: &Other) -> bool

PartialOrd::lt on different numeric types
Source§

fn num_le(&self, other: &Other) -> bool

PartialOrd::le on different numeric types
Source§

fn num_gt(&self, other: &Other) -> bool

PartialOrd::gt on different numeric types
Source§

fn num_ge(&self, other: &Other) -> bool

PartialOrd::ge on different numeric types
Source§

impl NumOrd<RBig> for Relaxed

Source§

fn num_eq(&self, other: &RBig) -> bool

PartialEq::eq on different numeric types
Source§

fn num_partial_cmp(&self, other: &RBig) -> Option<Ordering>

PartialOrd::partial_cmp on different numeric types
Source§

fn num_cmp(&self, other: &RBig) -> Ordering

Ord::cmp on different numeric types. It panics if either of the numeric values contains NaN.
Source§

fn num_ne(&self, other: &Other) -> bool

PartialEq::ne on different numeric types
Source§

fn num_lt(&self, other: &Other) -> bool

PartialOrd::lt on different numeric types
Source§

fn num_le(&self, other: &Other) -> bool

PartialOrd::le on different numeric types
Source§

fn num_gt(&self, other: &Other) -> bool

PartialOrd::gt on different numeric types
Source§

fn num_ge(&self, other: &Other) -> bool

PartialOrd::ge on different numeric types
Source§

impl<R: Round, const B: Word> NumOrd<Relaxed> for FBig<R, B>

Source§

fn num_cmp(&self, other: &Relaxed) -> Ordering

Ord::cmp on different numeric types. It panics if either of the numeric values contains NaN.
Source§

fn num_partial_cmp(&self, other: &Relaxed) -> Option<Ordering>

PartialOrd::partial_cmp on different numeric types
Source§

fn num_eq(&self, other: &Other) -> bool

PartialEq::eq on different numeric types
Source§

fn num_ne(&self, other: &Other) -> bool

PartialEq::ne on different numeric types
Source§

fn num_lt(&self, other: &Other) -> bool

PartialOrd::lt on different numeric types
Source§

fn num_le(&self, other: &Other) -> bool

PartialOrd::le on different numeric types
Source§

fn num_gt(&self, other: &Other) -> bool

PartialOrd::gt on different numeric types
Source§

fn num_ge(&self, other: &Other) -> bool

PartialOrd::ge on different numeric types
Source§

impl NumOrd<Relaxed> for IBig

Source§

fn num_cmp(&self, other: &Relaxed) -> Ordering

Ord::cmp on different numeric types. It panics if either of the numeric values contains NaN.
Source§

fn num_partial_cmp(&self, other: &Relaxed) -> Option<Ordering>

PartialOrd::partial_cmp on different numeric types
Source§

fn num_eq(&self, other: &Other) -> bool

PartialEq::eq on different numeric types
Source§

fn num_ne(&self, other: &Other) -> bool

PartialEq::ne on different numeric types
Source§

fn num_lt(&self, other: &Other) -> bool

PartialOrd::lt on different numeric types
Source§

fn num_le(&self, other: &Other) -> bool

PartialOrd::le on different numeric types
Source§

fn num_gt(&self, other: &Other) -> bool

PartialOrd::gt on different numeric types
Source§

fn num_ge(&self, other: &Other) -> bool

PartialOrd::ge on different numeric types
Source§

impl NumOrd<Relaxed> for RBig

Source§

fn num_eq(&self, other: &Relaxed) -> bool

PartialEq::eq on different numeric types
Source§

fn num_partial_cmp(&self, other: &Relaxed) -> Option<Ordering>

PartialOrd::partial_cmp on different numeric types
Source§

fn num_cmp(&self, other: &Relaxed) -> Ordering

Ord::cmp on different numeric types. It panics if either of the numeric values contains NaN.
Source§

fn num_ne(&self, other: &Other) -> bool

PartialEq::ne on different numeric types
Source§

fn num_lt(&self, other: &Other) -> bool

PartialOrd::lt on different numeric types
Source§

fn num_le(&self, other: &Other) -> bool

PartialOrd::le on different numeric types
Source§

fn num_gt(&self, other: &Other) -> bool

PartialOrd::gt on different numeric types
Source§

fn num_ge(&self, other: &Other) -> bool

PartialOrd::ge on different numeric types
Source§

impl NumOrd<Relaxed> for UBig

Source§

fn num_cmp(&self, other: &Relaxed) -> Ordering

Ord::cmp on different numeric types. It panics if either of the numeric values contains NaN.
Source§

fn num_partial_cmp(&self, other: &Relaxed) -> Option<Ordering>

PartialOrd::partial_cmp on different numeric types
Source§

fn num_eq(&self, other: &Other) -> bool

PartialEq::eq on different numeric types
Source§

fn num_ne(&self, other: &Other) -> bool

PartialEq::ne on different numeric types
Source§

fn num_lt(&self, other: &Other) -> bool

PartialOrd::lt on different numeric types
Source§

fn num_le(&self, other: &Other) -> bool

PartialOrd::le on different numeric types
Source§

fn num_gt(&self, other: &Other) -> bool

PartialOrd::gt on different numeric types
Source§

fn num_ge(&self, other: &Other) -> bool

PartialOrd::ge on different numeric types
Source§

impl NumOrd<Relaxed> for f32

Source§

fn num_cmp(&self, other: &Relaxed) -> Ordering

Ord::cmp on different numeric types. It panics if either of the numeric values contains NaN.
Source§

fn num_partial_cmp(&self, other: &Relaxed) -> Option<Ordering>

PartialOrd::partial_cmp on different numeric types
Source§

fn num_eq(&self, other: &Other) -> bool

PartialEq::eq on different numeric types
Source§

fn num_ne(&self, other: &Other) -> bool

PartialEq::ne on different numeric types
Source§

fn num_lt(&self, other: &Other) -> bool

PartialOrd::lt on different numeric types
Source§

fn num_le(&self, other: &Other) -> bool

PartialOrd::le on different numeric types
Source§

fn num_gt(&self, other: &Other) -> bool

PartialOrd::gt on different numeric types
Source§

fn num_ge(&self, other: &Other) -> bool

PartialOrd::ge on different numeric types
Source§

impl NumOrd<Relaxed> for f64

Source§

fn num_cmp(&self, other: &Relaxed) -> Ordering

Ord::cmp on different numeric types. It panics if either of the numeric values contains NaN.
Source§

fn num_partial_cmp(&self, other: &Relaxed) -> Option<Ordering>

PartialOrd::partial_cmp on different numeric types
Source§

fn num_eq(&self, other: &Other) -> bool

PartialEq::eq on different numeric types
Source§

fn num_ne(&self, other: &Other) -> bool

PartialEq::ne on different numeric types
Source§

fn num_lt(&self, other: &Other) -> bool

PartialOrd::lt on different numeric types
Source§

fn num_le(&self, other: &Other) -> bool

PartialOrd::le on different numeric types
Source§

fn num_gt(&self, other: &Other) -> bool

PartialOrd::gt on different numeric types
Source§

fn num_ge(&self, other: &Other) -> bool

PartialOrd::ge on different numeric types
Source§

impl NumOrd<Relaxed> for i128

Source§

fn num_cmp(&self, other: &Relaxed) -> Ordering

Ord::cmp on different numeric types. It panics if either of the numeric values contains NaN.
Source§

fn num_partial_cmp(&self, other: &Relaxed) -> Option<Ordering>

PartialOrd::partial_cmp on different numeric types
Source§

fn num_eq(&self, other: &Other) -> bool

PartialEq::eq on different numeric types
Source§

fn num_ne(&self, other: &Other) -> bool

PartialEq::ne on different numeric types
Source§

fn num_lt(&self, other: &Other) -> bool

PartialOrd::lt on different numeric types
Source§

fn num_le(&self, other: &Other) -> bool

PartialOrd::le on different numeric types
Source§

fn num_gt(&self, other: &Other) -> bool

PartialOrd::gt on different numeric types
Source§

fn num_ge(&self, other: &Other) -> bool

PartialOrd::ge on different numeric types
Source§

impl NumOrd<Relaxed> for i16

Source§

fn num_cmp(&self, other: &Relaxed) -> Ordering

Ord::cmp on different numeric types. It panics if either of the numeric values contains NaN.
Source§

fn num_partial_cmp(&self, other: &Relaxed) -> Option<Ordering>

PartialOrd::partial_cmp on different numeric types
Source§

fn num_eq(&self, other: &Other) -> bool

PartialEq::eq on different numeric types
Source§

fn num_ne(&self, other: &Other) -> bool

PartialEq::ne on different numeric types
Source§

fn num_lt(&self, other: &Other) -> bool

PartialOrd::lt on different numeric types
Source§

fn num_le(&self, other: &Other) -> bool

PartialOrd::le on different numeric types
Source§

fn num_gt(&self, other: &Other) -> bool

PartialOrd::gt on different numeric types
Source§

fn num_ge(&self, other: &Other) -> bool

PartialOrd::ge on different numeric types
Source§

impl NumOrd<Relaxed> for i32

Source§

fn num_cmp(&self, other: &Relaxed) -> Ordering

Ord::cmp on different numeric types. It panics if either of the numeric values contains NaN.
Source§

fn num_partial_cmp(&self, other: &Relaxed) -> Option<Ordering>

PartialOrd::partial_cmp on different numeric types
Source§

fn num_eq(&self, other: &Other) -> bool

PartialEq::eq on different numeric types
Source§

fn num_ne(&self, other: &Other) -> bool

PartialEq::ne on different numeric types
Source§

fn num_lt(&self, other: &Other) -> bool

PartialOrd::lt on different numeric types
Source§

fn num_le(&self, other: &Other) -> bool

PartialOrd::le on different numeric types
Source§

fn num_gt(&self, other: &Other) -> bool

PartialOrd::gt on different numeric types
Source§

fn num_ge(&self, other: &Other) -> bool

PartialOrd::ge on different numeric types
Source§

impl NumOrd<Relaxed> for i64

Source§

fn num_cmp(&self, other: &Relaxed) -> Ordering

Ord::cmp on different numeric types. It panics if either of the numeric values contains NaN.
Source§

fn num_partial_cmp(&self, other: &Relaxed) -> Option<Ordering>

PartialOrd::partial_cmp on different numeric types
Source§

fn num_eq(&self, other: &Other) -> bool

PartialEq::eq on different numeric types
Source§

fn num_ne(&self, other: &Other) -> bool

PartialEq::ne on different numeric types
Source§

fn num_lt(&self, other: &Other) -> bool

PartialOrd::lt on different numeric types
Source§

fn num_le(&self, other: &Other) -> bool

PartialOrd::le on different numeric types
Source§

fn num_gt(&self, other: &Other) -> bool

PartialOrd::gt on different numeric types
Source§

fn num_ge(&self, other: &Other) -> bool

PartialOrd::ge on different numeric types
Source§

impl NumOrd<Relaxed> for i8

Source§

fn num_cmp(&self, other: &Relaxed) -> Ordering

Ord::cmp on different numeric types. It panics if either of the numeric values contains NaN.
Source§

fn num_partial_cmp(&self, other: &Relaxed) -> Option<Ordering>

PartialOrd::partial_cmp on different numeric types
Source§

fn num_eq(&self, other: &Other) -> bool

PartialEq::eq on different numeric types
Source§

fn num_ne(&self, other: &Other) -> bool

PartialEq::ne on different numeric types
Source§

fn num_lt(&self, other: &Other) -> bool

PartialOrd::lt on different numeric types
Source§

fn num_le(&self, other: &Other) -> bool

PartialOrd::le on different numeric types
Source§

fn num_gt(&self, other: &Other) -> bool

PartialOrd::gt on different numeric types
Source§

fn num_ge(&self, other: &Other) -> bool

PartialOrd::ge on different numeric types
Source§

impl NumOrd<Relaxed> for isize

Source§

fn num_cmp(&self, other: &Relaxed) -> Ordering

Ord::cmp on different numeric types. It panics if either of the numeric values contains NaN.
Source§

fn num_partial_cmp(&self, other: &Relaxed) -> Option<Ordering>

PartialOrd::partial_cmp on different numeric types
Source§

fn num_eq(&self, other: &Other) -> bool

PartialEq::eq on different numeric types
Source§

fn num_ne(&self, other: &Other) -> bool

PartialEq::ne on different numeric types
Source§

fn num_lt(&self, other: &Other) -> bool

PartialOrd::lt on different numeric types
Source§

fn num_le(&self, other: &Other) -> bool

PartialOrd::le on different numeric types
Source§

fn num_gt(&self, other: &Other) -> bool

PartialOrd::gt on different numeric types
Source§

fn num_ge(&self, other: &Other) -> bool

PartialOrd::ge on different numeric types
Source§

impl NumOrd<Relaxed> for u128

Source§

fn num_cmp(&self, other: &Relaxed) -> Ordering

Ord::cmp on different numeric types. It panics if either of the numeric values contains NaN.
Source§

fn num_partial_cmp(&self, other: &Relaxed) -> Option<Ordering>

PartialOrd::partial_cmp on different numeric types
Source§

fn num_eq(&self, other: &Other) -> bool

PartialEq::eq on different numeric types
Source§

fn num_ne(&self, other: &Other) -> bool

PartialEq::ne on different numeric types
Source§

fn num_lt(&self, other: &Other) -> bool

PartialOrd::lt on different numeric types
Source§

fn num_le(&self, other: &Other) -> bool

PartialOrd::le on different numeric types
Source§

fn num_gt(&self, other: &Other) -> bool

PartialOrd::gt on different numeric types
Source§

fn num_ge(&self, other: &Other) -> bool

PartialOrd::ge on different numeric types
Source§

impl NumOrd<Relaxed> for u16

Source§

fn num_cmp(&self, other: &Relaxed) -> Ordering

Ord::cmp on different numeric types. It panics if either of the numeric values contains NaN.
Source§

fn num_partial_cmp(&self, other: &Relaxed) -> Option<Ordering>

PartialOrd::partial_cmp on different numeric types
Source§

fn num_eq(&self, other: &Other) -> bool

PartialEq::eq on different numeric types
Source§

fn num_ne(&self, other: &Other) -> bool

PartialEq::ne on different numeric types
Source§

fn num_lt(&self, other: &Other) -> bool

PartialOrd::lt on different numeric types
Source§

fn num_le(&self, other: &Other) -> bool

PartialOrd::le on different numeric types
Source§

fn num_gt(&self, other: &Other) -> bool

PartialOrd::gt on different numeric types
Source§

fn num_ge(&self, other: &Other) -> bool

PartialOrd::ge on different numeric types
Source§

impl NumOrd<Relaxed> for u32

Source§

fn num_cmp(&self, other: &Relaxed) -> Ordering

Ord::cmp on different numeric types. It panics if either of the numeric values contains NaN.
Source§

fn num_partial_cmp(&self, other: &Relaxed) -> Option<Ordering>

PartialOrd::partial_cmp on different numeric types
Source§

fn num_eq(&self, other: &Other) -> bool

PartialEq::eq on different numeric types
Source§

fn num_ne(&self, other: &Other) -> bool

PartialEq::ne on different numeric types
Source§

fn num_lt(&self, other: &Other) -> bool

PartialOrd::lt on different numeric types
Source§

fn num_le(&self, other: &Other) -> bool

PartialOrd::le on different numeric types
Source§

fn num_gt(&self, other: &Other) -> bool

PartialOrd::gt on different numeric types
Source§

fn num_ge(&self, other: &Other) -> bool

PartialOrd::ge on different numeric types
Source§

impl NumOrd<Relaxed> for u64

Source§

fn num_cmp(&self, other: &Relaxed) -> Ordering

Ord::cmp on different numeric types. It panics if either of the numeric values contains NaN.
Source§

fn num_partial_cmp(&self, other: &Relaxed) -> Option<Ordering>

PartialOrd::partial_cmp on different numeric types
Source§

fn num_eq(&self, other: &Other) -> bool

PartialEq::eq on different numeric types
Source§

fn num_ne(&self, other: &Other) -> bool

PartialEq::ne on different numeric types
Source§

fn num_lt(&self, other: &Other) -> bool

PartialOrd::lt on different numeric types
Source§

fn num_le(&self, other: &Other) -> bool

PartialOrd::le on different numeric types
Source§

fn num_gt(&self, other: &Other) -> bool

PartialOrd::gt on different numeric types
Source§

fn num_ge(&self, other: &Other) -> bool

PartialOrd::ge on different numeric types
Source§

impl NumOrd<Relaxed> for u8

Source§

fn num_cmp(&self, other: &Relaxed) -> Ordering

Ord::cmp on different numeric types. It panics if either of the numeric values contains NaN.
Source§

fn num_partial_cmp(&self, other: &Relaxed) -> Option<Ordering>

PartialOrd::partial_cmp on different numeric types
Source§

fn num_eq(&self, other: &Other) -> bool

PartialEq::eq on different numeric types
Source§

fn num_ne(&self, other: &Other) -> bool

PartialEq::ne on different numeric types
Source§

fn num_lt(&self, other: &Other) -> bool

PartialOrd::lt on different numeric types
Source§

fn num_le(&self, other: &Other) -> bool

PartialOrd::le on different numeric types
Source§

fn num_gt(&self, other: &Other) -> bool

PartialOrd::gt on different numeric types
Source§

fn num_ge(&self, other: &Other) -> bool

PartialOrd::ge on different numeric types
Source§

impl NumOrd<Relaxed> for usize

Source§

fn num_cmp(&self, other: &Relaxed) -> Ordering

Ord::cmp on different numeric types. It panics if either of the numeric values contains NaN.
Source§

fn num_partial_cmp(&self, other: &Relaxed) -> Option<Ordering>

PartialOrd::partial_cmp on different numeric types
Source§

fn num_eq(&self, other: &Other) -> bool

PartialEq::eq on different numeric types
Source§

fn num_ne(&self, other: &Other) -> bool

PartialEq::ne on different numeric types
Source§

fn num_lt(&self, other: &Other) -> bool

PartialOrd::lt on different numeric types
Source§

fn num_le(&self, other: &Other) -> bool

PartialOrd::le on different numeric types
Source§

fn num_gt(&self, other: &Other) -> bool

PartialOrd::gt on different numeric types
Source§

fn num_ge(&self, other: &Other) -> bool

PartialOrd::ge on different numeric types
Source§

impl NumOrd<UBig> for Relaxed

Source§

fn num_cmp(&self, other: &UBig) -> Ordering

Ord::cmp on different numeric types. It panics if either of the numeric values contains NaN.
Source§

fn num_partial_cmp(&self, other: &UBig) -> Option<Ordering>

PartialOrd::partial_cmp on different numeric types
Source§

fn num_eq(&self, other: &Other) -> bool

PartialEq::eq on different numeric types
Source§

fn num_ne(&self, other: &Other) -> bool

PartialEq::ne on different numeric types
Source§

fn num_lt(&self, other: &Other) -> bool

PartialOrd::lt on different numeric types
Source§

fn num_le(&self, other: &Other) -> bool

PartialOrd::le on different numeric types
Source§

fn num_gt(&self, other: &Other) -> bool

PartialOrd::gt on different numeric types
Source§

fn num_ge(&self, other: &Other) -> bool

PartialOrd::ge on different numeric types
Source§

impl NumOrd<f32> for Relaxed

Source§

fn num_cmp(&self, other: &f32) -> Ordering

Ord::cmp on different numeric types. It panics if either of the numeric values contains NaN.
Source§

fn num_partial_cmp(&self, other: &f32) -> Option<Ordering>

PartialOrd::partial_cmp on different numeric types
Source§

fn num_eq(&self, other: &Other) -> bool

PartialEq::eq on different numeric types
Source§

fn num_ne(&self, other: &Other) -> bool

PartialEq::ne on different numeric types
Source§

fn num_lt(&self, other: &Other) -> bool

PartialOrd::lt on different numeric types
Source§

fn num_le(&self, other: &Other) -> bool

PartialOrd::le on different numeric types
Source§

fn num_gt(&self, other: &Other) -> bool

PartialOrd::gt on different numeric types
Source§

fn num_ge(&self, other: &Other) -> bool

PartialOrd::ge on different numeric types
Source§

impl NumOrd<f64> for Relaxed

Source§

fn num_cmp(&self, other: &f64) -> Ordering

Ord::cmp on different numeric types. It panics if either of the numeric values contains NaN.
Source§

fn num_partial_cmp(&self, other: &f64) -> Option<Ordering>

PartialOrd::partial_cmp on different numeric types
Source§

fn num_eq(&self, other: &Other) -> bool

PartialEq::eq on different numeric types
Source§

fn num_ne(&self, other: &Other) -> bool

PartialEq::ne on different numeric types
Source§

fn num_lt(&self, other: &Other) -> bool

PartialOrd::lt on different numeric types
Source§

fn num_le(&self, other: &Other) -> bool

PartialOrd::le on different numeric types
Source§

fn num_gt(&self, other: &Other) -> bool

PartialOrd::gt on different numeric types
Source§

fn num_ge(&self, other: &Other) -> bool

PartialOrd::ge on different numeric types
Source§

impl NumOrd<i128> for Relaxed

Source§

fn num_cmp(&self, other: &i128) -> Ordering

Ord::cmp on different numeric types. It panics if either of the numeric values contains NaN.
Source§

fn num_partial_cmp(&self, other: &i128) -> Option<Ordering>

PartialOrd::partial_cmp on different numeric types
Source§

fn num_eq(&self, other: &Other) -> bool

PartialEq::eq on different numeric types
Source§

fn num_ne(&self, other: &Other) -> bool

PartialEq::ne on different numeric types
Source§

fn num_lt(&self, other: &Other) -> bool

PartialOrd::lt on different numeric types
Source§

fn num_le(&self, other: &Other) -> bool

PartialOrd::le on different numeric types
Source§

fn num_gt(&self, other: &Other) -> bool

PartialOrd::gt on different numeric types
Source§

fn num_ge(&self, other: &Other) -> bool

PartialOrd::ge on different numeric types
Source§

impl NumOrd<i16> for Relaxed

Source§

fn num_cmp(&self, other: &i16) -> Ordering

Ord::cmp on different numeric types. It panics if either of the numeric values contains NaN.
Source§

fn num_partial_cmp(&self, other: &i16) -> Option<Ordering>

PartialOrd::partial_cmp on different numeric types
Source§

fn num_eq(&self, other: &Other) -> bool

PartialEq::eq on different numeric types
Source§

fn num_ne(&self, other: &Other) -> bool

PartialEq::ne on different numeric types
Source§

fn num_lt(&self, other: &Other) -> bool

PartialOrd::lt on different numeric types
Source§

fn num_le(&self, other: &Other) -> bool

PartialOrd::le on different numeric types
Source§

fn num_gt(&self, other: &Other) -> bool

PartialOrd::gt on different numeric types
Source§

fn num_ge(&self, other: &Other) -> bool

PartialOrd::ge on different numeric types
Source§

impl NumOrd<i32> for Relaxed

Source§

fn num_cmp(&self, other: &i32) -> Ordering

Ord::cmp on different numeric types. It panics if either of the numeric values contains NaN.
Source§

fn num_partial_cmp(&self, other: &i32) -> Option<Ordering>

PartialOrd::partial_cmp on different numeric types
Source§

fn num_eq(&self, other: &Other) -> bool

PartialEq::eq on different numeric types
Source§

fn num_ne(&self, other: &Other) -> bool

PartialEq::ne on different numeric types
Source§

fn num_lt(&self, other: &Other) -> bool

PartialOrd::lt on different numeric types
Source§

fn num_le(&self, other: &Other) -> bool

PartialOrd::le on different numeric types
Source§

fn num_gt(&self, other: &Other) -> bool

PartialOrd::gt on different numeric types
Source§

fn num_ge(&self, other: &Other) -> bool

PartialOrd::ge on different numeric types
Source§

impl NumOrd<i64> for Relaxed

Source§

fn num_cmp(&self, other: &i64) -> Ordering

Ord::cmp on different numeric types. It panics if either of the numeric values contains NaN.
Source§

fn num_partial_cmp(&self, other: &i64) -> Option<Ordering>

PartialOrd::partial_cmp on different numeric types
Source§

fn num_eq(&self, other: &Other) -> bool

PartialEq::eq on different numeric types
Source§

fn num_ne(&self, other: &Other) -> bool

PartialEq::ne on different numeric types
Source§

fn num_lt(&self, other: &Other) -> bool

PartialOrd::lt on different numeric types
Source§

fn num_le(&self, other: &Other) -> bool

PartialOrd::le on different numeric types
Source§

fn num_gt(&self, other: &Other) -> bool

PartialOrd::gt on different numeric types
Source§

fn num_ge(&self, other: &Other) -> bool

PartialOrd::ge on different numeric types
Source§

impl NumOrd<i8> for Relaxed

Source§

fn num_cmp(&self, other: &i8) -> Ordering

Ord::cmp on different numeric types. It panics if either of the numeric values contains NaN.
Source§

fn num_partial_cmp(&self, other: &i8) -> Option<Ordering>

PartialOrd::partial_cmp on different numeric types
Source§

fn num_eq(&self, other: &Other) -> bool

PartialEq::eq on different numeric types
Source§

fn num_ne(&self, other: &Other) -> bool

PartialEq::ne on different numeric types
Source§

fn num_lt(&self, other: &Other) -> bool

PartialOrd::lt on different numeric types
Source§

fn num_le(&self, other: &Other) -> bool

PartialOrd::le on different numeric types
Source§

fn num_gt(&self, other: &Other) -> bool

PartialOrd::gt on different numeric types
Source§

fn num_ge(&self, other: &Other) -> bool

PartialOrd::ge on different numeric types
Source§

impl NumOrd<isize> for Relaxed

Source§

fn num_cmp(&self, other: &isize) -> Ordering

Ord::cmp on different numeric types. It panics if either of the numeric values contains NaN.
Source§

fn num_partial_cmp(&self, other: &isize) -> Option<Ordering>

PartialOrd::partial_cmp on different numeric types
Source§

fn num_eq(&self, other: &Other) -> bool

PartialEq::eq on different numeric types
Source§

fn num_ne(&self, other: &Other) -> bool

PartialEq::ne on different numeric types
Source§

fn num_lt(&self, other: &Other) -> bool

PartialOrd::lt on different numeric types
Source§

fn num_le(&self, other: &Other) -> bool

PartialOrd::le on different numeric types
Source§

fn num_gt(&self, other: &Other) -> bool

PartialOrd::gt on different numeric types
Source§

fn num_ge(&self, other: &Other) -> bool

PartialOrd::ge on different numeric types
Source§

impl NumOrd<u128> for Relaxed

Source§

fn num_cmp(&self, other: &u128) -> Ordering

Ord::cmp on different numeric types. It panics if either of the numeric values contains NaN.
Source§

fn num_partial_cmp(&self, other: &u128) -> Option<Ordering>

PartialOrd::partial_cmp on different numeric types
Source§

fn num_eq(&self, other: &Other) -> bool

PartialEq::eq on different numeric types
Source§

fn num_ne(&self, other: &Other) -> bool

PartialEq::ne on different numeric types
Source§

fn num_lt(&self, other: &Other) -> bool

PartialOrd::lt on different numeric types
Source§

fn num_le(&self, other: &Other) -> bool

PartialOrd::le on different numeric types
Source§

fn num_gt(&self, other: &Other) -> bool

PartialOrd::gt on different numeric types
Source§

fn num_ge(&self, other: &Other) -> bool

PartialOrd::ge on different numeric types
Source§

impl NumOrd<u16> for Relaxed

Source§

fn num_cmp(&self, other: &u16) -> Ordering

Ord::cmp on different numeric types. It panics if either of the numeric values contains NaN.
Source§

fn num_partial_cmp(&self, other: &u16) -> Option<Ordering>

PartialOrd::partial_cmp on different numeric types
Source§

fn num_eq(&self, other: &Other) -> bool

PartialEq::eq on different numeric types
Source§

fn num_ne(&self, other: &Other) -> bool

PartialEq::ne on different numeric types
Source§

fn num_lt(&self, other: &Other) -> bool

PartialOrd::lt on different numeric types
Source§

fn num_le(&self, other: &Other) -> bool

PartialOrd::le on different numeric types
Source§

fn num_gt(&self, other: &Other) -> bool

PartialOrd::gt on different numeric types
Source§

fn num_ge(&self, other: &Other) -> bool

PartialOrd::ge on different numeric types
Source§

impl NumOrd<u32> for Relaxed

Source§

fn num_cmp(&self, other: &u32) -> Ordering

Ord::cmp on different numeric types. It panics if either of the numeric values contains NaN.
Source§

fn num_partial_cmp(&self, other: &u32) -> Option<Ordering>

PartialOrd::partial_cmp on different numeric types
Source§

fn num_eq(&self, other: &Other) -> bool

PartialEq::eq on different numeric types
Source§

fn num_ne(&self, other: &Other) -> bool

PartialEq::ne on different numeric types
Source§

fn num_lt(&self, other: &Other) -> bool

PartialOrd::lt on different numeric types
Source§

fn num_le(&self, other: &Other) -> bool

PartialOrd::le on different numeric types
Source§

fn num_gt(&self, other: &Other) -> bool

PartialOrd::gt on different numeric types
Source§

fn num_ge(&self, other: &Other) -> bool

PartialOrd::ge on different numeric types
Source§

impl NumOrd<u64> for Relaxed

Source§

fn num_cmp(&self, other: &u64) -> Ordering

Ord::cmp on different numeric types. It panics if either of the numeric values contains NaN.
Source§

fn num_partial_cmp(&self, other: &u64) -> Option<Ordering>

PartialOrd::partial_cmp on different numeric types
Source§

fn num_eq(&self, other: &Other) -> bool

PartialEq::eq on different numeric types
Source§

fn num_ne(&self, other: &Other) -> bool

PartialEq::ne on different numeric types
Source§

fn num_lt(&self, other: &Other) -> bool

PartialOrd::lt on different numeric types
Source§

fn num_le(&self, other: &Other) -> bool

PartialOrd::le on different numeric types
Source§

fn num_gt(&self, other: &Other) -> bool

PartialOrd::gt on different numeric types
Source§

fn num_ge(&self, other: &Other) -> bool

PartialOrd::ge on different numeric types
Source§

impl NumOrd<u8> for Relaxed

Source§

fn num_cmp(&self, other: &u8) -> Ordering

Ord::cmp on different numeric types. It panics if either of the numeric values contains NaN.
Source§

fn num_partial_cmp(&self, other: &u8) -> Option<Ordering>

PartialOrd::partial_cmp on different numeric types
Source§

fn num_eq(&self, other: &Other) -> bool

PartialEq::eq on different numeric types
Source§

fn num_ne(&self, other: &Other) -> bool

PartialEq::ne on different numeric types
Source§

fn num_lt(&self, other: &Other) -> bool

PartialOrd::lt on different numeric types
Source§

fn num_le(&self, other: &Other) -> bool

PartialOrd::le on different numeric types
Source§

fn num_gt(&self, other: &Other) -> bool

PartialOrd::gt on different numeric types
Source§

fn num_ge(&self, other: &Other) -> bool

PartialOrd::ge on different numeric types
Source§

impl NumOrd<usize> for Relaxed

Source§

fn num_cmp(&self, other: &usize) -> Ordering

Ord::cmp on different numeric types. It panics if either of the numeric values contains NaN.
Source§

fn num_partial_cmp(&self, other: &usize) -> Option<Ordering>

PartialOrd::partial_cmp on different numeric types
Source§

fn num_eq(&self, other: &Other) -> bool

PartialEq::eq on different numeric types
Source§

fn num_ne(&self, other: &Other) -> bool

PartialEq::ne on different numeric types
Source§

fn num_lt(&self, other: &Other) -> bool

PartialOrd::lt on different numeric types
Source§

fn num_le(&self, other: &Other) -> bool

PartialOrd::le on different numeric types
Source§

fn num_gt(&self, other: &Other) -> bool

PartialOrd::gt on different numeric types
Source§

fn num_ge(&self, other: &Other) -> bool

PartialOrd::ge on different numeric types
Source§

impl One for Relaxed

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 Relaxed

Source§

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

Source§

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

Source§

fn partial_cmp(&self, other: &Relaxed) -> 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 Pow<usize> for &Relaxed

Source§

type Output = Relaxed

The result after applying the operator.
Source§

fn pow(self, rhs: usize) -> Relaxed

Returns self to the power rhs. Read more
Source§

impl Pow<usize> for Relaxed

Source§

type Output = Relaxed

The result after applying the operator.
Source§

fn pow(self, rhs: usize) -> Relaxed

Returns self to the power rhs. Read more
Source§

impl<'l, 'r> Rem<&'r Relaxed> for &'l Relaxed

Source§

type Output = Relaxed

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl<'r> Rem<&'r Relaxed> for Relaxed

Source§

type Output = Relaxed

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl<'l> Rem<Relaxed> for &'l Relaxed

Source§

type Output = Relaxed

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl Rem for Relaxed

Source§

type Output = Relaxed

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl RemAssign<&Relaxed> for Relaxed

Source§

fn rem_assign(&mut self, rhs: &Relaxed)

Performs the %= operation. Read more
Source§

impl RemAssign for Relaxed

Source§

fn rem_assign(&mut self, rhs: Relaxed)

Performs the %= operation. Read more
Source§

impl<'l, 'r> RemEuclid<&'r Relaxed> for &'l Relaxed

Source§

impl<'r> RemEuclid<&'r Relaxed> for Relaxed

Source§

impl<'l> RemEuclid<Relaxed> for &'l Relaxed

Source§

impl RemEuclid for Relaxed

Source§

impl Serialize for Relaxed

Source§

fn serialize<S: Serializer>(&self, serializer: S) -> Result<S::Ok, S::Error>

Serialize this value into the given Serde serializer. Read more
Source§

impl Signed for Relaxed

Source§

fn sign(&self) -> Sign

Source§

fn is_positive(&self) -> bool

Source§

fn is_negative(&self) -> bool

Source§

impl Signed for Relaxed

Source§

fn abs(&self) -> Self

Computes the absolute value. Read more
Source§

fn abs_sub(&self, other: &Self) -> Self

The positive difference of two numbers. Read more
Source§

fn signum(&self) -> Self

Returns the sign of the number. Read more
Source§

fn is_positive(&self) -> bool

Returns true if the number is positive and false if the number is zero or negative.
Source§

fn is_negative(&self) -> bool

Returns true if the number is negative and false if the number is zero or positive.
Source§

impl<'l, 'r> Sub<&'r IBig> for &'l Relaxed

Source§

type Output = Relaxed

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &IBig) -> Relaxed

Performs the - operation. Read more
Source§

impl<'r> Sub<&'r IBig> for Relaxed

Source§

type Output = Relaxed

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &IBig) -> Relaxed

Performs the - operation. Read more
Source§

impl<'l, 'r> Sub<&'r Relaxed> for &'l IBig

Source§

type Output = Relaxed

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl<'l, 'r> Sub<&'r Relaxed> for &'l Relaxed

Source§

type Output = Relaxed

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl<'l, 'r> Sub<&'r Relaxed> for &'l UBig

Source§

type Output = Relaxed

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl<'r> Sub<&'r Relaxed> for IBig

Source§

type Output = Relaxed

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl<'r> Sub<&'r Relaxed> for Relaxed

Source§

type Output = Relaxed

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl<'r> Sub<&'r Relaxed> for UBig

Source§

type Output = Relaxed

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl<'l, 'r> Sub<&'r UBig> for &'l Relaxed

Source§

type Output = Relaxed

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &UBig) -> Relaxed

Performs the - operation. Read more
Source§

impl<'r> Sub<&'r UBig> for Relaxed

Source§

type Output = Relaxed

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: &UBig) -> Relaxed

Performs the - operation. Read more
Source§

impl<'l> Sub<IBig> for &'l Relaxed

Source§

type Output = Relaxed

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: IBig) -> Relaxed

Performs the - operation. Read more
Source§

impl Sub<IBig> for Relaxed

Source§

type Output = Relaxed

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: IBig) -> Relaxed

Performs the - operation. Read more
Source§

impl<'l> Sub<Relaxed> for &'l IBig

Source§

type Output = Relaxed

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl<'l> Sub<Relaxed> for &'l Relaxed

Source§

type Output = Relaxed

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl<'l> Sub<Relaxed> for &'l UBig

Source§

type Output = Relaxed

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl Sub<Relaxed> for IBig

Source§

type Output = Relaxed

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl Sub<Relaxed> for UBig

Source§

type Output = Relaxed

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl<'l> Sub<UBig> for &'l Relaxed

Source§

type Output = Relaxed

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: UBig) -> Relaxed

Performs the - operation. Read more
Source§

impl Sub<UBig> for Relaxed

Source§

type Output = Relaxed

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: UBig) -> Relaxed

Performs the - operation. Read more
Source§

impl Sub for Relaxed

Source§

type Output = Relaxed

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl SubAssign<&Relaxed> for Relaxed

Source§

fn sub_assign(&mut self, rhs: &Relaxed)

Performs the -= operation. Read more
Source§

impl SubAssign for Relaxed

Source§

fn sub_assign(&mut self, rhs: Relaxed)

Performs the -= operation. Read more
Source§

impl ToPrimitive for Relaxed

Source§

fn to_i8(&self) -> Option<i8>

Converts the value of self to an i8. If the value cannot be represented by an i8, then None is returned.
Source§

fn to_i16(&self) -> Option<i16>

Converts the value of self to an i16. If the value cannot be represented by an i16, then None is returned.
Source§

fn to_i32(&self) -> Option<i32>

Converts the value of self to an i32. If the value cannot be represented by an i32, then None is returned.
Source§

fn to_i64(&self) -> Option<i64>

Converts the value of self to an i64. If the value cannot be represented by an i64, then None is returned.
Source§

fn to_i128(&self) -> Option<i128>

Converts the value of self to an i128. If the value cannot be represented by an i128 (i64 under the default implementation), then None is returned. Read more
Source§

fn to_isize(&self) -> Option<isize>

Converts the value of self to an isize. If the value cannot be represented by an isize, then None is returned.
Source§

fn to_u8(&self) -> Option<u8>

Converts the value of self to a u8. If the value cannot be represented by a u8, then None is returned.
Source§

fn to_u16(&self) -> Option<u16>

Converts the value of self to a u16. If the value cannot be represented by a u16, then None is returned.
Source§

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

Converts the value of self to a u32. If the value cannot be represented by a u32, then None is returned.
Source§

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

Converts the value of self to a u64. If the value cannot be represented by a u64, then None is returned.
Source§

fn to_u128(&self) -> Option<u128>

Converts the value of self to a u128. If the value cannot be represented by a u128 (u64 under the default implementation), then None is returned. Read more
Source§

fn to_usize(&self) -> Option<usize>

Converts the value of self to a usize. If the value cannot be represented by a usize, then None is returned.
Source§

fn to_f32(&self) -> Option<f32>

Converts the value of self to an f32. Overflows may map to positive or negative inifinity, otherwise None is returned if the value cannot be represented by an f32.
Source§

fn to_f64(&self) -> Option<f64>

Converts the value of self to an f64. Overflows may map to positive or negative inifinity, otherwise None is returned if the value cannot be represented by an f64. Read more
Source§

impl<R: Round, const B: Word> TryFrom<FBig<R, B>> for Relaxed

Source§

type Error = ConversionError

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

fn try_from(value: FBig<R, B>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Relaxed> for IBig

Source§

type Error = ConversionError

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

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

Performs the conversion.
Source§

impl TryFrom<Relaxed> for UBig

Source§

type Error = ConversionError

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

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

Performs the conversion.
Source§

impl TryFrom<Relaxed> for f32

Source§

type Error = ConversionError

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

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

Performs the conversion.
Source§

impl TryFrom<Relaxed> for f64

Source§

type Error = ConversionError

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

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

Performs the conversion.
Source§

impl TryFrom<Relaxed> for i128

Source§

type Error = ConversionError

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

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

Performs the conversion.
Source§

impl TryFrom<Relaxed> for i16

Source§

type Error = ConversionError

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

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

Performs the conversion.
Source§

impl TryFrom<Relaxed> for i32

Source§

type Error = ConversionError

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

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

Performs the conversion.
Source§

impl TryFrom<Relaxed> for i64

Source§

type Error = ConversionError

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

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

Performs the conversion.
Source§

impl TryFrom<Relaxed> for i8

Source§

type Error = ConversionError

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

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

Performs the conversion.
Source§

impl TryFrom<Relaxed> for isize

Source§

type Error = ConversionError

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

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

Performs the conversion.
Source§

impl TryFrom<Relaxed> for u128

Source§

type Error = ConversionError

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

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

Performs the conversion.
Source§

impl TryFrom<Relaxed> for u16

Source§

type Error = ConversionError

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

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

Performs the conversion.
Source§

impl TryFrom<Relaxed> for u32

Source§

type Error = ConversionError

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

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

Performs the conversion.
Source§

impl TryFrom<Relaxed> for u64

Source§

type Error = ConversionError

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

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

Performs the conversion.
Source§

impl TryFrom<Relaxed> for u8

Source§

type Error = ConversionError

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

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

Performs the conversion.
Source§

impl TryFrom<Relaxed> for usize

Source§

type Error = ConversionError

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

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

Performs the conversion.
Source§

impl<const B: Word> TryFrom<Repr<B>> for Relaxed

Source§

type Error = ConversionError

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

fn try_from(value: FBigRepr<B>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<f32> for Relaxed

Source§

type Error = ConversionError

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

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

Performs the conversion.
Source§

impl TryFrom<f64> for Relaxed

Source§

type Error = ConversionError

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

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

Performs the conversion.
Source§

impl Zero for Relaxed

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 Zeroize for Relaxed

Source§

fn zeroize(&mut self)

Zero out this object from memory using Rust intrinsics which ensure the zeroization operation is not “optimized away” by the compiler.
Source§

impl Eq for Relaxed

Source§

impl StructuralPartialEq for Relaxed

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.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

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>,