RBig

Struct RBig 

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

An arbitrary precision rational number.

This struct represents an rational number with arbitrarily large numerator and denominator based on UBig and IBig.

Implementations§

Source§

impl RBig

Source

pub fn to_f32_fast(&self) -> f32

Convert the rational number to a f32.

The rounding follows the default IEEE 754 behavior (rounds to nearest, ties to even).

The rounding will be correct at most of the time, but in rare cases the mantissa can be off by one bit. Use RBig::to_f32 for ensured correct rounding.

§Examples
assert_eq!(RBig::ONE.to_f32_fast(), 1f32);

let r = RBig::from_parts(22.into(), 7u8.into());
assert_eq!(r.to_f32_fast(), 22./7.)
Source

pub fn to_f64_fast(&self) -> f64

Convert the rational number to a f64.

The rounding follows the default IEEE 754 behavior (rounds to nearest, ties to even).

The rounding will be correct at most of the time, but in rare cases the mantissa can be off by one bit. Use RBig::to_f64 for ensured correct rounding.

§Examples
assert_eq!(RBig::ONE.to_f64_fast(), 1f64);

let r = RBig::from_parts(22.into(), 7u8.into());
assert_eq!(r.to_f64_fast(), 22./7.)
Source

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

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

The rounding follows the default IEEE 754 behavior (rounds to nearest, ties to even).

Because of the guaranteed rounding, it might take a long time to convert when the numerator and denominator are large. In this case RBig::to_f32_fast can be used if the correct rounding is not required.

§Examples
assert_eq!(RBig::ONE.to_f32(), Exact(1f32));

let r = RBig::from_parts(22.into(), 7u8.into());
// f32 representation of 22/7 is smaller than the actual 22/7
assert_eq!(r.to_f32(), Inexact(22./7., Negative));
Source

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

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

The rounding follows the default IEEE 754 behavior (rounds to nearest, ties to even).

Because of the guaranteed rounding, it might take a long time to convert when the numerator and denominator are large. In this case RBig::to_f64_fast can be used if the correct rounding is not required.

§Examples
assert_eq!(RBig::ONE.to_f64(), Exact(1f64));

let r = RBig::from_parts(22.into(), 7u8.into());
// f64 representation of 22/7 is smaller than the actual 22/7
assert_eq!(r.to_f64(), Inexact(22./7., Negative));
Source

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

Convert the rational number to an IBig.

The conversion rounds toward zero. It’s equivalent to RBig::trunc, but it returns the fractional part if the rational number is not an integer.

§Examples
let a = RBig::from_parts(22.into(), UBig::ONE);
assert_eq!(a.to_int(), Exact(IBig::from(22)));

let b = RBig::from_parts(22.into(), 7u8.into());
assert_eq!(b.to_int(), Inexact(
    IBig::from(3), RBig::from_parts(1.into(), 7u8.into())
));
Source§

impl RBig

Source

pub fn sqr(&self) -> RBig

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

§Examples
let a = RBig::from_parts(2.into(), 3u8.into());
let a2 = RBig::from_parts(4.into(), 9u8.into());
assert_eq!(a.sqr(), a2);
Source

pub fn cubic(&self) -> RBig

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

§Examples
let a = RBig::from_parts(2.into(), 3u8.into());
let a3 = RBig::from_parts(8.into(), 27u8.into());
assert_eq!(a.cubic(), a3);
Source

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

Raise this number to a power of n.

§Examples
let a = RBig::from_parts(2.into(), 3u8.into());
let a5 = RBig::from_parts(32.into(), 243u8.into());
assert_eq!(a.pow(5), a5);
Source§

impl RBig

Source

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

Convert a string in a given base to RBig.

The numerator and the denominator are separated by /. src may contain an optional + prefix. Digits 10-35 are represented by a-z or A-Z.

§Examples
assert_eq!(
    RBig::from_str_radix("+7ab/-sse", 32)?,
    RBig::from_parts((-7499).into(), 29582u16.into())
);
Source

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

Convert a string with optional radix prefixes to RBig, return the parsed integer and radix. If no prefix is present, then the default radix 10 will be used for parsing.

src may contain an ‘+’ or - prefix before the radix prefix of both the numerator and denominator.

Allowed prefixes: 0b for binary, 0o for octal, 0x for hexadecimal.

If the radix prefixes for the numerator and the denominator are not the same, then a ParseError will be returned. The radix prefix for the denominator can be omitted, and the radix for the numerator will used for parsing.

§Examples
assert_eq!(RBig::from_str_with_radix_prefix("+0o17/25")?,
    (RBig::from_parts(0o17.into(), 0o25u8.into()), 8));
assert_eq!(RBig::from_str_with_radix_prefix("-0x1f/-0x1e")?,
    (RBig::from_parts(0x1f.into(), 0x1eu8.into()), 16));
Source§

impl RBig

Source

pub const ZERO: RBig

RBig with value 0

Source

pub const ONE: RBig

RBig with value 1

Source

pub const NEG_ONE: RBig

RBig with value -1

Source

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

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

§Examples
assert_eq!(RBig::from_parts(IBig::ZERO, UBig::ONE), RBig::ZERO);
assert_eq!(RBig::from_parts(IBig::ONE, UBig::ONE), RBig::ONE);
assert_eq!(RBig::from_parts(IBig::NEG_ONE, UBig::ONE), RBig::NEG_ONE);
Source

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

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

§Examples
assert_eq!(RBig::ZERO.into_parts(), (IBig::ZERO, UBig::ONE));
assert_eq!(RBig::ONE.into_parts(), (IBig::ONE, UBig::ONE));
assert_eq!(RBig::NEG_ONE.into_parts(), (IBig::NEG_ONE, UBig::ONE));
Source

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

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

§Examples
assert_eq!(RBig::from_parts_signed(1.into(), 1.into()), RBig::ONE);
assert_eq!(RBig::from_parts_signed(12.into(), (-12).into()), RBig::NEG_ONE);
Source

pub const fn from_parts_const( sign: Sign, numerator: u128, denominator: u128, ) -> RBig

Create a rational number in a const context

The magnitude of the numerator and the denominator is limited to a DoubleWord.

§Examples
const ONE: RBig = RBig::from_parts_const(Sign::Positive, 1, 1);
assert_eq!(ONE, RBig::ONE);
const NEG_ONE: RBig = RBig::from_parts_const(Sign::Negative, 1, 1);
assert_eq!(NEG_ONE, RBig::NEG_ONE);
Source

pub fn numerator(&self) -> &IBig

Get the numerator of the rational number

§Examples
assert_eq!(RBig::ZERO.numerator(), &IBig::ZERO);
assert_eq!(RBig::ONE.numerator(), &IBig::ONE);
Source

pub fn denominator(&self) -> &UBig

Get the denominator of the rational number

§Examples
assert_eq!(RBig::ZERO.denominator(), &UBig::ONE);
assert_eq!(RBig::ONE.denominator(), &UBig::ONE);
Source

pub fn relax(self) -> Relaxed

Convert this rational number into a Relaxed version

§Examples
assert_eq!(RBig::ZERO.relax(), Relaxed::ZERO);
assert_eq!(RBig::ONE.relax(), Relaxed::ONE);
Source

pub const fn as_relaxed(&self) -> &Relaxed

Regard the number as a Relaxed number and return a reference of Relaxed type.

§Examples
assert_eq!(RBig::ONE.as_relaxed(), &Relaxed::ONE);
Source

pub const fn is_zero(&self) -> bool

Check whether the number is 0

§Examples
assert!(RBig::ZERO.is_zero());
assert!(!RBig::ONE.is_zero());
Source

pub const fn is_one(&self) -> bool

Check whether the number is 1

§Examples
assert!(!RBig::ZERO.is_one());
assert!(RBig::ONE.is_one());
Source

pub const fn is_int(&self) -> bool

Determine if the number can be regarded as an integer.

§Examples
assert!(RBig::ZERO.is_int());
assert!(RBig::ONE.is_int());
Source§

impl RBig

Source

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

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

It’s return is equivalent to (self.trunc(), self.fract())

§Examples
assert_eq!(RBig::ONE.split_at_point(), (IBig::ONE, RBig::ZERO));

let a = RBig::from_parts(22.into(), 7u8.into());
let (trunc, fract) = a.split_at_point();
assert_eq!(trunc, IBig::from(3));
assert_eq!(fract, RBig::from_parts(1.into(), 7u8.into()));
Source

pub fn ceil(&self) -> IBig

Compute the least integer that is greater than or equal to this number.

§Examples
assert_eq!(RBig::ONE.ceil(), IBig::ONE);

let a = RBig::from_parts(22.into(), 7u8.into());
assert_eq!(a.ceil(), IBig::from(4));
Source

pub fn floor(&self) -> IBig

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

§Examples
assert_eq!(RBig::ONE.floor(), IBig::ONE);

let a = RBig::from_parts(22.into(), 7u8.into());
assert_eq!(a.floor(), IBig::from(3));
Source

pub fn round(&self) -> IBig

Compute the integer that closest to this number.

It will return the one farther from zero when the number has the 1/2 as its fractional part.

§Examples
assert_eq!(RBig::ONE.round(), IBig::ONE);

let a = RBig::from_parts(22.into(), 7u8.into());
assert_eq!(a.round(), IBig::from(3));
Source

pub fn trunc(&self) -> IBig

Returns the integral part of the rational number.

It’s guaranteed that self == self.trunc() + self.fract().

§Examples
assert_eq!(RBig::ONE.trunc(), IBig::ONE);

let a = RBig::from_parts(22.into(), 7u8.into());
assert_eq!(a.trunc(), IBig::from(3));
Source

pub fn fract(&self) -> RBig

Returns the fractional part of the rational number

It’s guaranteed that self == self.trunc() + self.fract().

§Examples
assert_eq!(RBig::ONE.fract(), RBig::ZERO);

let a = RBig::from_parts(22.into(), 7u8.into());
assert_eq!(a.fract(), RBig::from_parts(1.into(), 7u8.into()));
Source§

impl RBig

Source

pub const fn sign(&self) -> Sign

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

§Examples
assert_eq!(RBig::ZERO.sign(), Sign::Positive);
assert_eq!(RBig::ONE.sign(), Sign::Positive);
assert_eq!(RBig::NEG_ONE.sign(), Sign::Negative);
Source

pub const fn signum(&self) -> RBig

A number representing the sign of self.

§Examples

let r = RBig::from_parts((-10).into(), 5u8.into());
assert_eq!(r.signum(), RBig::NEG_ONE);
Source§

impl RBig

Source

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

Determine if this rational number is simpler than the other number.

This method only make sense for canonicalized ratios.

Source

pub fn simplest_from_f32(f: f32) -> Option<RBig>

Find the simplest rational number in the rounding interval of the f32 number.

This method returns None when the floating point value is not representable by a rational number, such as infinities or nans.

See RBig::simplest_in for the definition of simplicity.

The rounding interval of a f32 value is an interval such that all numbers in this range will rounded to this f32 value. For example the rounding interval for 1f32 is [1. - f32::EPSILON / 2, 1. + f32::EPSILON / 2]. That is, the error of result value will be less than 1/2 ULP.

This method can be used to recover the original fraction represented as a division of f32. See the examples below.

§Examples
assert_eq!(
    RBig::simplest_from_f32(1e-1).unwrap(),
    RBig::from_parts(1.into(), 10u8.into())
);
assert_eq!(
    RBig::simplest_from_f32(22./7.).unwrap(),
    RBig::from_parts(22.into(), 7u8.into())
);
Source

pub fn simplest_from_f64(f: f64) -> Option<RBig>

Find the simplest rational number in the rounding interval of the f64 number.

This method returns None when the floating point value is not representable by a rational number, such as infinities or nans.

See RBig::simplest_in for the definition of simplicity.

The rounding interval of a f64 value is an interval such that all numbers in this range will rounded to this f64 value. For example the rounding interval for 1f64 is [1. - f64::EPSILON / 2, 1. + f64::EPSILON / 2]. That is, the error of result value will be less than 1/2 ULP.

This method can be used to recover the original fraction represented as a division of f64. See the examples below.

§Examples
assert_eq!(
    RBig::simplest_from_f64(1e-1).unwrap(),
    RBig::from_parts(1.into(), 10u8.into())
);
assert_eq!(
    RBig::simplest_from_f64(22./7.).unwrap(),
    RBig::from_parts(22.into(), 7u8.into())
);
Source

pub fn simplest_in(lower: RBig, upper: RBig) -> RBig

Find the simplest rational number in the open interval (lower, upper).

A rational n₁/d₁ is simpler than another rational number n₂/d₂ if:

  • d₁ < d₂ (compare denominator)
  • or |n₁| < |n₂| (then compare the magnitude of numerator)
  • or n₂ < 0 < n₁ (then compare the sign)

lower and upper will be swapped if necessary. If lower and upper are the same number, then this number will be directly returned.

§Examples
let a = RBig::from_parts(1234.into(), 5678u16.into());
let b = RBig::from_parts(1235.into(), 5679u16.into());
let s = RBig::simplest_in(a, b);
// 1234/5678 < 5/23 < 1235/5679
assert_eq!(s, RBig::from_parts(5.into(), 23u8.into()));
Source

pub fn nearest(&self, limit: &UBig) -> Approximation<RBig, Sign>

Find the closest rational number to this number with a limit of the denominator.

If the denominator of this number is larger than the limit, then it returns the closest one between self.next_up() and self.next_down() to self. If the denominator of this number is already less than or equal to the limit, then Exact(self) will be returned.

The error |self - self.nearest()| will be less than 1/(2*limit), and the sign of the error self - self.nearest() will be returned if the result is not Exact.

§Examples
let a: RBig = 3.141592653.try_into().unwrap();
assert_eq!(a.nearest(&10u8.into()), Inexact(
    RBig::from_parts(22.into(), 7u8.into()),
    Sign::Positive // 22/7 > 3.141592653
));
Source

pub fn next_up(&self, limit: &UBig) -> RBig

Find the closest rational number that is greater than this number and has a denominator less than limit.

It’s equivalent to finding the next element in Farey sequence of order limit. The error |self - self.next_up()| will be less than 1/limit.

§Examples
let a: RBig = 3.141592653.try_into().unwrap();
assert_eq!(a.next_up(&10u8.into()), RBig::from_parts(22.into(), 7u8.into()));
Source

pub fn next_down(&self, limit: &UBig) -> RBig

Find the closest rational number that is less than this number and has a denominator less than limit.

It’s equivalent to finding the previous element in Farey sequence of order limit. The error |self - self.next_down()| will be less than 1/limit.

§Examples
let a: RBig = 3.141592653.try_into().unwrap();
assert_eq!(a.next_down(&10u8.into()), RBig::from_parts(25.into(), 8u8.into()));
Source§

impl RBig

Source

pub fn to_float<R, const B: u64>( &self, precision: usize, ) -> Approximation<FBig<R, B>, Rounding>
where R: Round,

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

§Examples
use dashu_float::{DBig, round::Rounding::*};

assert_eq!(RBig::ONE.to_float(1), Exact(DBig::ONE));
assert_eq!(RBig::from(1000).to_float(4), Exact(DBig::from(1000)));
assert_eq!(RBig::from_parts(1000.into(), 6u8.into()).to_float(4),
    Inexact(DBig::from_parts(1667.into(), -1), AddOne));
Source

pub fn simplest_from_float<R, const B: u64>(f: &FBig<R, B>) -> Option<RBig>
where R: ErrorBounds,

§Examples
use dashu_float::DBig;

let f = DBig::from_str_native("4.00")? / DBig::from_str_native("3.00")?;
let r = RBig::from_str_radix("4/3", 10)?;
assert_eq!(RBig::simplest_from_float(&f), Some(r));
assert_eq!(RBig::simplest_from_float(&DBig::INFINITY), None);

Trait Implementations§

Source§

impl Abs for RBig

Source§

type Output = RBig

Source§

fn abs(self) -> <RBig as Abs>::Output

Source§

impl AbsEq for RBig

Source§

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

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

impl<R, const B: u64> AbsOrd<FBig<R, B>> for RBig
where R: Round,

Source§

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

Source§

impl AbsOrd<IBig> for RBig

Source§

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

Source§

impl<R, const B: u64> AbsOrd<RBig> for FBig<R, B>
where R: Round,

Source§

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

Source§

impl AbsOrd<RBig> for IBig

Source§

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

Source§

impl AbsOrd<RBig> for Relaxed

Source§

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

Source§

impl AbsOrd<RBig> for UBig

Source§

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

Source§

impl AbsOrd<Relaxed> for RBig

Source§

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

Source§

impl AbsOrd<UBig> for RBig

Source§

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

Source§

impl AbsOrd for RBig

Source§

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

Source§

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

Source§

type Output = RBig

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

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

Source§

type Output = RBig

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

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

Source§

type Output = RBig

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

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

Source§

type Output = RBig

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

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

Source§

type Output = RBig

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

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

Source§

type Output = RBig

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

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

Source§

type Output = RBig

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

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

Source§

type Output = RBig

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

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

Source§

type Output = RBig

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

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

Source§

type Output = RBig

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

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

Source§

type Output = RBig

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add<IBig> for RBig

Source§

type Output = RBig

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

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

Source§

type Output = RBig

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

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

Source§

type Output = RBig

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

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

Source§

type Output = RBig

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add<RBig> for IBig

Source§

type Output = RBig

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add<RBig> for UBig

Source§

type Output = RBig

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

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

Source§

type Output = RBig

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add<UBig> for RBig

Source§

type Output = RBig

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl Add for RBig

Source§

type Output = RBig

The resulting type after applying the + operator.
Source§

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

Performs the + operation. Read more
Source§

impl AddAssign<&RBig> for RBig

Source§

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

Performs the += operation. Read more
Source§

impl AddAssign for RBig

Source§

fn add_assign(&mut self, rhs: RBig)

Performs the += operation. Read more
Source§

impl Clone for RBig

Source§

fn clone(&self) -> RBig

Returns a duplicate of the value. Read more
Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for RBig

Source§

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

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

impl Default for RBig

Source§

fn default() -> RBig

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

impl<'de> Deserialize<'de> for RBig

Source§

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

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

impl Display for RBig

Source§

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

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

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

Source§

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

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 RBig

Source§

type Output = RBig

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

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

Source§

type Output = RBig

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

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

Source§

type Output = RBig

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

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

Source§

type Output = RBig

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

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

Source§

type Output = RBig

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

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

Source§

type Output = RBig

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

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

Source§

type Output = RBig

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl Div<IBig> for RBig

Source§

type Output = RBig

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

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

Source§

type Output = RBig

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

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

Source§

type Output = RBig

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl Div<UBig> for RBig

Source§

type Output = RBig

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl Div for RBig

Source§

type Output = RBig

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl DivAssign<&RBig> for RBig

Source§

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

Performs the /= operation. Read more
Source§

impl DivAssign for RBig

Source§

fn div_assign(&mut self, rhs: RBig)

Performs the /= operation. Read more
Source§

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

Source§

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

Source§

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

Source§

impl DivEuclid for RBig

Source§

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

Source§

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

Source§

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

Source§

impl DivRemEuclid for RBig

Source§

impl EstimatedLog2 for RBig

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 RBig

Source§

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

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

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

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 RBig

Source§

fn from(v: IBig) -> RBig

Converts to this type from the input type.
Source§

impl<R, const B: u64> From<RBig> for FBig<R, B>
where R: Round,

Source§

fn from(v: RBig) -> FBig<R, B>

Converts to this type from the input type.
Source§

impl From<UBig> for RBig

Source§

fn from(v: UBig) -> RBig

Converts to this type from the input type.
Source§

impl From<i128> for RBig

Source§

fn from(v: i128) -> RBig

Converts to this type from the input type.
Source§

impl From<i16> for RBig

Source§

fn from(v: i16) -> RBig

Converts to this type from the input type.
Source§

impl From<i32> for RBig

Source§

fn from(v: i32) -> RBig

Converts to this type from the input type.
Source§

impl From<i64> for RBig

Source§

fn from(v: i64) -> RBig

Converts to this type from the input type.
Source§

impl From<i8> for RBig

Source§

fn from(v: i8) -> RBig

Converts to this type from the input type.
Source§

impl From<isize> for RBig

Source§

fn from(v: isize) -> RBig

Converts to this type from the input type.
Source§

impl From<u128> for RBig

Source§

fn from(v: u128) -> RBig

Converts to this type from the input type.
Source§

impl From<u16> for RBig

Source§

fn from(v: u16) -> RBig

Converts to this type from the input type.
Source§

impl From<u32> for RBig

Source§

fn from(v: u32) -> RBig

Converts to this type from the input type.
Source§

impl From<u64> for RBig

Source§

fn from(v: u64) -> RBig

Converts to this type from the input type.
Source§

impl From<u8> for RBig

Source§

fn from(v: u8) -> RBig

Converts to this type from the input type.
Source§

impl From<usize> for RBig

Source§

fn from(v: usize) -> RBig

Converts to this type from the input type.
Source§

impl FromPrimitive for RBig

Source§

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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 RBig

Source§

type Err = ParseError

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

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

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

impl Hash for RBig

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 Inverse for &RBig

Source§

impl Inverse for RBig

Source§

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

Source§

type Output = RBig

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

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

Source§

type Output = RBig

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

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

Source§

type Output = RBig

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

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

Source§

type Output = RBig

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

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

Source§

type Output = RBig

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

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

Source§

type Output = RBig

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

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

Source§

type Output = RBig

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

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

Source§

type Output = RBig

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

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

Source§

type Output = RBig

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

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

Source§

type Output = RBig

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

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

Source§

type Output = RBig

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<IBig> for RBig

Source§

type Output = RBig

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

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

Source§

type Output = RBig

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

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

Source§

type Output = RBig

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

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

Source§

type Output = RBig

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<RBig> for IBig

Source§

type Output = RBig

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<RBig> for UBig

Source§

type Output = RBig

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<Sign> for RBig

Source§

type Output = RBig

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Sign) -> RBig

Performs the * operation. Read more
Source§

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

Source§

type Output = RBig

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul<UBig> for RBig

Source§

type Output = RBig

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl Mul for RBig

Source§

type Output = RBig

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl MulAssign<&RBig> for RBig

Source§

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

Performs the *= operation. Read more
Source§

impl MulAssign for RBig

Source§

fn mul_assign(&mut self, rhs: RBig)

Performs the *= operation. Read more
Source§

impl Neg for &RBig

Source§

type Output = RBig

The resulting type after applying the - operator.
Source§

fn neg(self) -> <&RBig as Neg>::Output

Performs the unary - operation. Read more
Source§

impl Neg for RBig

Source§

type Output = RBig

The resulting type after applying the - operator.
Source§

fn neg(self) -> <RBig as Neg>::Output

Performs the unary - operation. Read more
Source§

impl Num for RBig

Source§

type FromStrRadixErr = ParseError

Source§

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

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

impl NumHash for RBig

Source§

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

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

impl<R, const B: u64> NumOrd<FBig<R, B>> for RBig
where R: Round,

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 RBig

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<R, const B: u64> NumOrd<RBig> for FBig<R, B>
where R: Round,

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_partial_cmp(&self, other: &RBig) -> 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 IBig

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_partial_cmp(&self, other: &RBig) -> 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 NumOrd<RBig> for UBig

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_partial_cmp(&self, other: &RBig) -> 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<UBig> for RBig

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 RBig

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 RBig

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 RBig

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 RBig

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 RBig

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 RBig

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 RBig

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 RBig

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 RBig

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 RBig

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 RBig

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 RBig

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 RBig

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 RBig

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 RBig

Source§

fn one() -> RBig

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 RBig

Source§

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

Source§

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

Source§

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

Source§

type Output = RBig

The result after applying the operator.
Source§

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

Returns self to the power rhs. Read more
Source§

impl Pow<usize> for RBig

Source§

type Output = RBig

The result after applying the operator.
Source§

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

Returns self to the power rhs. Read more
Source§

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

Source§

type Output = RBig

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

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

Source§

type Output = RBig

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

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

Source§

type Output = RBig

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl Rem for RBig

Source§

type Output = RBig

The resulting type after applying the % operator.
Source§

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

Performs the % operation. Read more
Source§

impl RemAssign<&RBig> for RBig

Source§

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

Performs the %= operation. Read more
Source§

impl RemAssign for RBig

Source§

fn rem_assign(&mut self, rhs: RBig)

Performs the %= operation. Read more
Source§

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

Source§

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

Source§

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

Source§

impl RemEuclid for RBig

Source§

impl SampleUniform for RBig

Source§

type Sampler = UniformRBig

The UniformSampler implementation supporting type X.
Source§

impl Serialize for RBig

Source§

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

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

impl Signed for RBig

Source§

fn sign(&self) -> Sign

Source§

fn is_positive(&self) -> bool

Source§

fn is_negative(&self) -> bool

Source§

impl Signed for RBig

Source§

fn abs(&self) -> RBig

Computes the absolute value. Read more
Source§

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

The positive difference of two numbers. Read more
Source§

fn signum(&self) -> RBig

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 RBig

Source§

type Output = RBig

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

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

Source§

type Output = RBig

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

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

Source§

type Output = RBig

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

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

Source§

type Output = RBig

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

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

Source§

type Output = RBig

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

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

Source§

type Output = RBig

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

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

Source§

type Output = RBig

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

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

Source§

type Output = RBig

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

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

Source§

type Output = RBig

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

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

Source§

type Output = RBig

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

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

Source§

type Output = RBig

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl Sub<IBig> for RBig

Source§

type Output = RBig

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

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

Source§

type Output = RBig

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

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

Source§

type Output = RBig

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

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

Source§

type Output = RBig

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl Sub<RBig> for IBig

Source§

type Output = RBig

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl Sub<RBig> for UBig

Source§

type Output = RBig

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

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

Source§

type Output = RBig

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl Sub<UBig> for RBig

Source§

type Output = RBig

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl Sub for RBig

Source§

type Output = RBig

The resulting type after applying the - operator.
Source§

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

Performs the - operation. Read more
Source§

impl SubAssign<&RBig> for RBig

Source§

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

Performs the -= operation. Read more
Source§

impl SubAssign for RBig

Source§

fn sub_assign(&mut self, rhs: RBig)

Performs the -= operation. Read more
Source§

impl ToPrimitive for RBig

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, const B: u64> TryFrom<FBig<R, B>> for RBig
where R: Round,

Source§

type Error = ConversionError

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

fn try_from( value: FBig<R, B>, ) -> Result<RBig, <RBig as TryFrom<FBig<R, B>>>::Error>

Performs the conversion.
Source§

impl TryFrom<RBig> for IBig

Source§

type Error = ConversionError

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

fn try_from(value: RBig) -> Result<IBig, <IBig as TryFrom<RBig>>::Error>

Performs the conversion.
Source§

impl TryFrom<RBig> for UBig

Source§

type Error = ConversionError

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

fn try_from(value: RBig) -> Result<UBig, <UBig as TryFrom<RBig>>::Error>

Performs the conversion.
Source§

impl<const B: u64> TryFrom<Repr<B>> for RBig

Source§

type Error = ConversionError

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

fn try_from(value: Repr<B>) -> Result<RBig, <RBig as TryFrom<Repr<B>>>::Error>

Performs the conversion.
Source§

impl TryFrom<f32> for RBig

Source§

type Error = ConversionError

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

fn try_from(value: f32) -> Result<RBig, <RBig as TryFrom<f32>>::Error>

Performs the conversion.
Source§

impl TryFrom<f64> for RBig

Source§

type Error = ConversionError

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

fn try_from(value: f64) -> Result<RBig, <RBig as TryFrom<f64>>::Error>

Performs the conversion.
Source§

impl Zero for RBig

Source§

fn zero() -> RBig

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 RBig

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 RBig

Auto Trait Implementations§

§

impl Freeze for RBig

§

impl RefUnwindSafe for RBig

§

impl Send for RBig

§

impl Sync for RBig

§

impl Unpin for RBig

§

impl UnwindSafe for RBig

Blanket Implementations§

Source§

impl<T> AggregateExpressionMethods for T

Source§

fn aggregate_distinct(self) -> Self::Output
where Self: DistinctDsl,

DISTINCT modifier for aggregate functions Read more
Source§

fn aggregate_all(self) -> Self::Output
where Self: AllDsl,

ALL modifier for aggregate functions Read more
Source§

fn aggregate_filter<P>(self, f: P) -> Self::Output
where P: AsExpression<Bool>, Self: FilterDsl<<P as AsExpression<Bool>>::Expression>,

Add an aggregate function filter Read more
Source§

fn aggregate_order<O>(self, o: O) -> Self::Output
where Self: OrderAggregateDsl<O>,

Add an aggregate function order Read more
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> Downcast for T
where T: Any,

Source§

fn into_any(self: Box<T>) -> Box<dyn Any>

Converts Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.
Source§

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>

Converts Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait.
Source§

fn as_any(&self) -> &(dyn Any + 'static)

Converts &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s.
Source§

fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)

Converts &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s.
Source§

impl<T> DowncastSend for T
where T: Any + Send,

Source§

fn into_any_send(self: Box<T>) -> Box<dyn Any + Send>

Converts Box<Trait> (where Trait: DowncastSend) to Box<dyn Any + Send>, which can then be downcast into Box<ConcreteType> where ConcreteType implements Trait.
Source§

impl<T> DowncastSync for T
where T: Any + Send + Sync,

Source§

fn into_any_sync(self: Box<T>) -> Box<dyn Any + Send + Sync>

Converts Box<Trait> (where Trait: DowncastSync) to Box<dyn Any + Send + Sync>, which can then be downcast into Box<ConcreteType> where ConcreteType implements Trait.
Source§

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Send + Sync>

Converts Arc<Trait> (where Trait: DowncastSync) to Arc<Any>, which can then be downcast into Arc<ConcreteType> where ConcreteType implements Trait.
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> IntoSql for T

Source§

fn into_sql<T>(self) -> Self::Expression

Convert self to an expression for Diesel’s query builder. Read more
Source§

fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
where &'a Self: AsExpression<T>, T: SqlType + TypedExpressionType,

Convert &self to an expression for Diesel’s query builder. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<Borrowed> SampleBorrow<Borrowed> for Borrowed
where Borrowed: SampleUniform,

Source§

fn borrow(&self) -> &Borrowed

Immutably borrows from an owned value. See Borrow::borrow
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<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WindowExpressionMethods for T

Source§

fn over(self) -> Self::Output
where Self: OverDsl,

Turn a function call into a window function call Read more
Source§

fn window_filter<P>(self, f: P) -> Self::Output
where P: AsExpression<Bool>, Self: FilterDsl<<P as AsExpression<Bool>>::Expression>,

Add a filter to the current window function Read more
Source§

fn partition_by<E>(self, expr: E) -> Self::Output
where Self: PartitionByDsl<E>,

Add a partition clause to the current window function Read more
Source§

fn window_order<E>(self, expr: E) -> Self::Output
where Self: OrderWindowDsl<E>,

Add a order clause to the current window function Read more
Source§

fn frame_by<E>(self, expr: E) -> Self::Output
where Self: FrameDsl<E>,

Add a frame clause to the current window function Read more
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>,