Struct unknown_order::BigNumber[][src]

pub struct BigNumber(_);
Expand description

Big number

Implementations

impl Bn[src]

pub fn modpow(&self, exponent: &Self, n: &Self) -> Self[src]

Returns (self ^ exponent) mod n Note that this rounds down which makes a difference when given a negative self or n. The result will be in the interval [0, n) for n > 0

pub fn modadd(&self, rhs: &Self, n: &Self) -> Self[src]

Compute (self + rhs) mod n

pub fn modsub(&self, rhs: &Self, n: &Self) -> Self[src]

Compute (self - rhs) mod n

pub fn modmul(&self, rhs: &Self, n: &Self) -> Self[src]

Compute (self * rhs) mod n

pub fn moddiv(&self, rhs: &Self, n: &Self) -> Self[src]

Compute (self * 1/rhs) mod n

pub fn modneg(&self, n: &Self) -> Self[src]

Compute -self mod n

pub fn invert(&self, modulus: &Bn) -> Option<Bn>[src]

Computes the multiplicative inverse of this element, failing if the element is zero.

pub fn zero() -> Self[src]

Return zero

pub fn one() -> Self[src]

Return one

pub fn is_zero(&self) -> bool[src]

self == 0

pub fn is_one(&self) -> bool[src]

self == 1

pub fn gcd(&self, other: &Bn) -> Self[src]

Compute the greatest common divisor

pub fn lcm(&self, other: &Bn) -> Self[src]

Compute the least common multiple

pub fn random(n: &Self) -> Self[src]

Generate a random value less than n

pub fn from_digest<D>(hasher: D) -> Self where
    D: Digest
[src]

Hash a byte sequence to a big number

pub fn from_slice<B>(b: B) -> Self where
    B: AsRef<[u8]>, 
[src]

Convert a byte sequence to a big number

pub fn to_bytes(&self) -> Vec<u8>[src]

Convert this big number to a big-endian byte sequence

pub fn extended_gcd(&self, other: &Bn) -> GcdResult[src]

Compute the extended euclid algorithm and return the Bézout coefficients and GCD

pub fn safe_prime(size: usize) -> Self[src]

Generate a safe prime with size bits

pub fn prime(size: usize) -> Self[src]

Generate a prime with size bits

pub fn is_prime(&self) -> bool[src]

True if a prime number

Trait Implementations

impl<'a, 'b> Add<&'b Bn> for &'a Bn[src]

type Output = Bn

The resulting type after applying the + operator.

fn add(self, rhs: &'b Self::Output) -> Self::Output[src]

Performs the + operation. Read more

impl<'b> Add<&'b Bn> for Bn[src]

type Output = Bn

The resulting type after applying the + operator.

fn add(self, rhs: &'b Self::Output) -> Self::Output[src]

Performs the + operation. Read more

impl<'a> Add<Bn> for &'a Bn[src]

type Output = Bn

The resulting type after applying the + operator.

fn add(self, rhs: Self::Output) -> Self::Output[src]

Performs the + operation. Read more

impl Add<Bn> for Bn[src]

type Output = Bn

The resulting type after applying the + operator.

fn add(self, rhs: Self::Output) -> Self::Output[src]

Performs the + operation. Read more

impl<'a> Add<i16> for &'a Bn[src]

type Output = Bn

The resulting type after applying the + operator.

fn add(self, rhs: i16) -> Self::Output[src]

Performs the + operation. Read more

impl Add<i16> for Bn[src]

type Output = Bn

The resulting type after applying the + operator.

fn add(self, rhs: i16) -> Self::Output[src]

Performs the + operation. Read more

impl<'a> Add<i32> for &'a Bn[src]

type Output = Bn

The resulting type after applying the + operator.

fn add(self, rhs: i32) -> Self::Output[src]

Performs the + operation. Read more

impl Add<i32> for Bn[src]

type Output = Bn

The resulting type after applying the + operator.

fn add(self, rhs: i32) -> Self::Output[src]

Performs the + operation. Read more

impl<'a> Add<i64> for &'a Bn[src]

type Output = Bn

The resulting type after applying the + operator.

fn add(self, rhs: i64) -> Self::Output[src]

Performs the + operation. Read more

impl Add<i64> for Bn[src]

type Output = Bn

The resulting type after applying the + operator.

fn add(self, rhs: i64) -> Self::Output[src]

Performs the + operation. Read more

impl<'a> Add<i8> for &'a Bn[src]

type Output = Bn

The resulting type after applying the + operator.

fn add(self, rhs: i8) -> Self::Output[src]

Performs the + operation. Read more

impl Add<i8> for Bn[src]

type Output = Bn

The resulting type after applying the + operator.

fn add(self, rhs: i8) -> Self::Output[src]

Performs the + operation. Read more

impl<'a> Add<isize> for &'a Bn[src]

type Output = Bn

The resulting type after applying the + operator.

fn add(self, rhs: isize) -> Self::Output[src]

Performs the + operation. Read more

impl Add<isize> for Bn[src]

type Output = Bn

The resulting type after applying the + operator.

fn add(self, rhs: isize) -> Self::Output[src]

Performs the + operation. Read more

impl<'a> Add<u16> for &'a Bn[src]

type Output = Bn

The resulting type after applying the + operator.

fn add(self, rhs: u16) -> Self::Output[src]

Performs the + operation. Read more

impl Add<u16> for Bn[src]

type Output = Bn

The resulting type after applying the + operator.

fn add(self, rhs: u16) -> Self::Output[src]

Performs the + operation. Read more

impl<'a> Add<u32> for &'a Bn[src]

type Output = Bn

The resulting type after applying the + operator.

fn add(self, rhs: u32) -> Self::Output[src]

Performs the + operation. Read more

impl Add<u32> for Bn[src]

type Output = Bn

The resulting type after applying the + operator.

fn add(self, rhs: u32) -> Self::Output[src]

Performs the + operation. Read more

impl<'a> Add<u64> for &'a Bn[src]

type Output = Bn

The resulting type after applying the + operator.

fn add(self, rhs: u64) -> Self::Output[src]

Performs the + operation. Read more

impl Add<u64> for Bn[src]

type Output = Bn

The resulting type after applying the + operator.

fn add(self, rhs: u64) -> Self::Output[src]

Performs the + operation. Read more

impl<'a> Add<u8> for &'a Bn[src]

type Output = Bn

The resulting type after applying the + operator.

fn add(self, rhs: u8) -> Self::Output[src]

Performs the + operation. Read more

impl Add<u8> for Bn[src]

type Output = Bn

The resulting type after applying the + operator.

fn add(self, rhs: u8) -> Self::Output[src]

Performs the + operation. Read more

impl<'a> Add<usize> for &'a Bn[src]

type Output = Bn

The resulting type after applying the + operator.

fn add(self, rhs: usize) -> Self::Output[src]

Performs the + operation. Read more

impl Add<usize> for Bn[src]

type Output = Bn

The resulting type after applying the + operator.

fn add(self, rhs: usize) -> Self::Output[src]

Performs the + operation. Read more

impl<'b> AddAssign<&'b Bn> for Bn[src]

fn add_assign(&mut self, rhs: &'b Bn)[src]

Performs the += operation. Read more

impl AddAssign<Bn> for Bn[src]

fn add_assign(&mut self, rhs: Bn)[src]

Performs the += operation. Read more

impl AddAssign<i16> for Bn[src]

fn add_assign(&mut self, rhs: i16)[src]

Performs the += operation. Read more

impl AddAssign<i32> for Bn[src]

fn add_assign(&mut self, rhs: i32)[src]

Performs the += operation. Read more

impl AddAssign<i64> for Bn[src]

fn add_assign(&mut self, rhs: i64)[src]

Performs the += operation. Read more

impl AddAssign<i8> for Bn[src]

fn add_assign(&mut self, rhs: i8)[src]

Performs the += operation. Read more

impl AddAssign<isize> for Bn[src]

fn add_assign(&mut self, rhs: isize)[src]

Performs the += operation. Read more

impl AddAssign<u16> for Bn[src]

fn add_assign(&mut self, rhs: u16)[src]

Performs the += operation. Read more

impl AddAssign<u32> for Bn[src]

fn add_assign(&mut self, rhs: u32)[src]

Performs the += operation. Read more

impl AddAssign<u64> for Bn[src]

fn add_assign(&mut self, rhs: u64)[src]

Performs the += operation. Read more

impl AddAssign<u8> for Bn[src]

fn add_assign(&mut self, rhs: u8)[src]

Performs the += operation. Read more

impl AddAssign<usize> for Bn[src]

fn add_assign(&mut self, rhs: usize)[src]

Performs the += operation. Read more

impl Clone for Bn[src]

fn clone(&self) -> Self[src]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for Bn[src]

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

Formats the value using the given formatter. Read more

impl Default for Bn[src]

fn default() -> Self[src]

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

impl<'de> Deserialize<'de> for Bn[src]

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

Deserialize this value from the given Serde deserializer. Read more

impl Display for Bn[src]

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

Formats the value using the given formatter. Read more

impl<'a, 'b> Div<&'b Bn> for &'a Bn[src]

type Output = Bn

The resulting type after applying the / operator.

fn div(self, rhs: &'b Self::Output) -> Self::Output[src]

Performs the / operation. Read more

impl<'b> Div<&'b Bn> for Bn[src]

type Output = Bn

The resulting type after applying the / operator.

fn div(self, rhs: &'b Self::Output) -> Self::Output[src]

Performs the / operation. Read more

impl<'a> Div<Bn> for &'a Bn[src]

type Output = Bn

The resulting type after applying the / operator.

fn div(self, rhs: Self::Output) -> Self::Output[src]

Performs the / operation. Read more

impl Div<Bn> for Bn[src]

type Output = Bn

The resulting type after applying the / operator.

fn div(self, rhs: Self::Output) -> Self::Output[src]

Performs the / operation. Read more

impl<'a> Div<i16> for &'a Bn[src]

type Output = Bn

The resulting type after applying the / operator.

fn div(self, rhs: i16) -> Self::Output[src]

Performs the / operation. Read more

impl Div<i16> for Bn[src]

type Output = Bn

The resulting type after applying the / operator.

fn div(self, rhs: i16) -> Self::Output[src]

Performs the / operation. Read more

impl<'a> Div<i32> for &'a Bn[src]

type Output = Bn

The resulting type after applying the / operator.

fn div(self, rhs: i32) -> Self::Output[src]

Performs the / operation. Read more

impl Div<i32> for Bn[src]

type Output = Bn

The resulting type after applying the / operator.

fn div(self, rhs: i32) -> Self::Output[src]

Performs the / operation. Read more

impl<'a> Div<i64> for &'a Bn[src]

type Output = Bn

The resulting type after applying the / operator.

fn div(self, rhs: i64) -> Self::Output[src]

Performs the / operation. Read more

impl Div<i64> for Bn[src]

type Output = Bn

The resulting type after applying the / operator.

fn div(self, rhs: i64) -> Self::Output[src]

Performs the / operation. Read more

impl<'a> Div<i8> for &'a Bn[src]

type Output = Bn

The resulting type after applying the / operator.

fn div(self, rhs: i8) -> Self::Output[src]

Performs the / operation. Read more

impl Div<i8> for Bn[src]

type Output = Bn

The resulting type after applying the / operator.

fn div(self, rhs: i8) -> Self::Output[src]

Performs the / operation. Read more

impl<'a> Div<isize> for &'a Bn[src]

type Output = Bn

The resulting type after applying the / operator.

fn div(self, rhs: isize) -> Self::Output[src]

Performs the / operation. Read more

impl Div<isize> for Bn[src]

type Output = Bn

The resulting type after applying the / operator.

fn div(self, rhs: isize) -> Self::Output[src]

Performs the / operation. Read more

impl<'a> Div<u16> for &'a Bn[src]

type Output = Bn

The resulting type after applying the / operator.

fn div(self, rhs: u16) -> Self::Output[src]

Performs the / operation. Read more

impl Div<u16> for Bn[src]

type Output = Bn

The resulting type after applying the / operator.

fn div(self, rhs: u16) -> Self::Output[src]

Performs the / operation. Read more

impl<'a> Div<u32> for &'a Bn[src]

type Output = Bn

The resulting type after applying the / operator.

fn div(self, rhs: u32) -> Self::Output[src]

Performs the / operation. Read more

impl Div<u32> for Bn[src]

type Output = Bn

The resulting type after applying the / operator.

fn div(self, rhs: u32) -> Self::Output[src]

Performs the / operation. Read more

impl<'a> Div<u64> for &'a Bn[src]

type Output = Bn

The resulting type after applying the / operator.

fn div(self, rhs: u64) -> Self::Output[src]

Performs the / operation. Read more

impl Div<u64> for Bn[src]

type Output = Bn

The resulting type after applying the / operator.

fn div(self, rhs: u64) -> Self::Output[src]

Performs the / operation. Read more

impl<'a> Div<u8> for &'a Bn[src]

type Output = Bn

The resulting type after applying the / operator.

fn div(self, rhs: u8) -> Self::Output[src]

Performs the / operation. Read more

impl Div<u8> for Bn[src]

type Output = Bn

The resulting type after applying the / operator.

fn div(self, rhs: u8) -> Self::Output[src]

Performs the / operation. Read more

impl<'a> Div<usize> for &'a Bn[src]

type Output = Bn

The resulting type after applying the / operator.

fn div(self, rhs: usize) -> Self::Output[src]

Performs the / operation. Read more

impl Div<usize> for Bn[src]

type Output = Bn

The resulting type after applying the / operator.

fn div(self, rhs: usize) -> Self::Output[src]

Performs the / operation. Read more

impl<'b> DivAssign<&'b Bn> for Bn[src]

fn div_assign(&mut self, rhs: &'b Bn)[src]

Performs the /= operation. Read more

impl DivAssign<Bn> for Bn[src]

fn div_assign(&mut self, rhs: Bn)[src]

Performs the /= operation. Read more

impl DivAssign<i16> for Bn[src]

fn div_assign(&mut self, rhs: i16)[src]

Performs the /= operation. Read more

impl DivAssign<i32> for Bn[src]

fn div_assign(&mut self, rhs: i32)[src]

Performs the /= operation. Read more

impl DivAssign<i64> for Bn[src]

fn div_assign(&mut self, rhs: i64)[src]

Performs the /= operation. Read more

impl DivAssign<i8> for Bn[src]

fn div_assign(&mut self, rhs: i8)[src]

Performs the /= operation. Read more

impl DivAssign<isize> for Bn[src]

fn div_assign(&mut self, rhs: isize)[src]

Performs the /= operation. Read more

impl DivAssign<u16> for Bn[src]

fn div_assign(&mut self, rhs: u16)[src]

Performs the /= operation. Read more

impl DivAssign<u32> for Bn[src]

fn div_assign(&mut self, rhs: u32)[src]

Performs the /= operation. Read more

impl DivAssign<u64> for Bn[src]

fn div_assign(&mut self, rhs: u64)[src]

Performs the /= operation. Read more

impl DivAssign<u8> for Bn[src]

fn div_assign(&mut self, rhs: u8)[src]

Performs the /= operation. Read more

impl DivAssign<usize> for Bn[src]

fn div_assign(&mut self, rhs: usize)[src]

Performs the /= operation. Read more

impl From<i16> for Bn[src]

fn from(d: i16) -> Self[src]

Performs the conversion.

impl From<i32> for Bn[src]

fn from(d: i32) -> Self[src]

Performs the conversion.

impl From<i64> for Bn[src]

fn from(d: i64) -> Self[src]

Performs the conversion.

impl From<i8> for Bn[src]

fn from(d: i8) -> Self[src]

Performs the conversion.

impl From<isize> for Bn[src]

fn from(d: isize) -> Self[src]

Performs the conversion.

impl From<u16> for Bn[src]

fn from(d: u16) -> Self[src]

Performs the conversion.

impl From<u32> for Bn[src]

fn from(d: u32) -> Self[src]

Performs the conversion.

impl From<u64> for Bn[src]

fn from(d: u64) -> Self[src]

Performs the conversion.

impl From<u8> for Bn[src]

fn from(d: u8) -> Self[src]

Performs the conversion.

impl From<usize> for Bn[src]

fn from(d: usize) -> Self[src]

Performs the conversion.

impl<'a, 'b> Mul<&'b Bn> for &'a Bn[src]

type Output = Bn

The resulting type after applying the * operator.

fn mul(self, rhs: &'b Self::Output) -> Self::Output[src]

Performs the * operation. Read more

impl<'b> Mul<&'b Bn> for Bn[src]

type Output = Bn

The resulting type after applying the * operator.

fn mul(self, rhs: &'b Self::Output) -> Self::Output[src]

Performs the * operation. Read more

impl<'a> Mul<Bn> for &'a Bn[src]

type Output = Bn

The resulting type after applying the * operator.

fn mul(self, rhs: Self::Output) -> Self::Output[src]

Performs the * operation. Read more

impl Mul<Bn> for Bn[src]

type Output = Bn

The resulting type after applying the * operator.

fn mul(self, rhs: Self::Output) -> Self::Output[src]

Performs the * operation. Read more

impl<'a> Mul<i16> for &'a Bn[src]

type Output = Bn

The resulting type after applying the * operator.

fn mul(self, rhs: i16) -> Self::Output[src]

Performs the * operation. Read more

impl Mul<i16> for Bn[src]

type Output = Bn

The resulting type after applying the * operator.

fn mul(self, rhs: i16) -> Self::Output[src]

Performs the * operation. Read more

impl<'a> Mul<i32> for &'a Bn[src]

type Output = Bn

The resulting type after applying the * operator.

fn mul(self, rhs: i32) -> Self::Output[src]

Performs the * operation. Read more

impl Mul<i32> for Bn[src]

type Output = Bn

The resulting type after applying the * operator.

fn mul(self, rhs: i32) -> Self::Output[src]

Performs the * operation. Read more

impl<'a> Mul<i64> for &'a Bn[src]

type Output = Bn

The resulting type after applying the * operator.

fn mul(self, rhs: i64) -> Self::Output[src]

Performs the * operation. Read more

impl Mul<i64> for Bn[src]

type Output = Bn

The resulting type after applying the * operator.

fn mul(self, rhs: i64) -> Self::Output[src]

Performs the * operation. Read more

impl<'a> Mul<i8> for &'a Bn[src]

type Output = Bn

The resulting type after applying the * operator.

fn mul(self, rhs: i8) -> Self::Output[src]

Performs the * operation. Read more

impl Mul<i8> for Bn[src]

type Output = Bn

The resulting type after applying the * operator.

fn mul(self, rhs: i8) -> Self::Output[src]

Performs the * operation. Read more

impl<'a> Mul<isize> for &'a Bn[src]

type Output = Bn

The resulting type after applying the * operator.

fn mul(self, rhs: isize) -> Self::Output[src]

Performs the * operation. Read more

impl Mul<isize> for Bn[src]

type Output = Bn

The resulting type after applying the * operator.

fn mul(self, rhs: isize) -> Self::Output[src]

Performs the * operation. Read more

impl<'a> Mul<u16> for &'a Bn[src]

type Output = Bn

The resulting type after applying the * operator.

fn mul(self, rhs: u16) -> Self::Output[src]

Performs the * operation. Read more

impl Mul<u16> for Bn[src]

type Output = Bn

The resulting type after applying the * operator.

fn mul(self, rhs: u16) -> Self::Output[src]

Performs the * operation. Read more

impl<'a> Mul<u32> for &'a Bn[src]

type Output = Bn

The resulting type after applying the * operator.

fn mul(self, rhs: u32) -> Self::Output[src]

Performs the * operation. Read more

impl Mul<u32> for Bn[src]

type Output = Bn

The resulting type after applying the * operator.

fn mul(self, rhs: u32) -> Self::Output[src]

Performs the * operation. Read more

impl<'a> Mul<u64> for &'a Bn[src]

type Output = Bn

The resulting type after applying the * operator.

fn mul(self, rhs: u64) -> Self::Output[src]

Performs the * operation. Read more

impl Mul<u64> for Bn[src]

type Output = Bn

The resulting type after applying the * operator.

fn mul(self, rhs: u64) -> Self::Output[src]

Performs the * operation. Read more

impl<'a> Mul<u8> for &'a Bn[src]

type Output = Bn

The resulting type after applying the * operator.

fn mul(self, rhs: u8) -> Self::Output[src]

Performs the * operation. Read more

impl Mul<u8> for Bn[src]

type Output = Bn

The resulting type after applying the * operator.

fn mul(self, rhs: u8) -> Self::Output[src]

Performs the * operation. Read more

impl<'a> Mul<usize> for &'a Bn[src]

type Output = Bn

The resulting type after applying the * operator.

fn mul(self, rhs: usize) -> Self::Output[src]

Performs the * operation. Read more

impl Mul<usize> for Bn[src]

type Output = Bn

The resulting type after applying the * operator.

fn mul(self, rhs: usize) -> Self::Output[src]

Performs the * operation. Read more

impl<'b> MulAssign<&'b Bn> for Bn[src]

fn mul_assign(&mut self, rhs: &'b Bn)[src]

Performs the *= operation. Read more

impl MulAssign<Bn> for Bn[src]

fn mul_assign(&mut self, rhs: Bn)[src]

Performs the *= operation. Read more

impl MulAssign<i16> for Bn[src]

fn mul_assign(&mut self, rhs: i16)[src]

Performs the *= operation. Read more

impl MulAssign<i32> for Bn[src]

fn mul_assign(&mut self, rhs: i32)[src]

Performs the *= operation. Read more

impl MulAssign<i64> for Bn[src]

fn mul_assign(&mut self, rhs: i64)[src]

Performs the *= operation. Read more

impl MulAssign<i8> for Bn[src]

fn mul_assign(&mut self, rhs: i8)[src]

Performs the *= operation. Read more

impl MulAssign<isize> for Bn[src]

fn mul_assign(&mut self, rhs: isize)[src]

Performs the *= operation. Read more

impl MulAssign<u16> for Bn[src]

fn mul_assign(&mut self, rhs: u16)[src]

Performs the *= operation. Read more

impl MulAssign<u32> for Bn[src]

fn mul_assign(&mut self, rhs: u32)[src]

Performs the *= operation. Read more

impl MulAssign<u64> for Bn[src]

fn mul_assign(&mut self, rhs: u64)[src]

Performs the *= operation. Read more

impl MulAssign<u8> for Bn[src]

fn mul_assign(&mut self, rhs: u8)[src]

Performs the *= operation. Read more

impl MulAssign<usize> for Bn[src]

fn mul_assign(&mut self, rhs: usize)[src]

Performs the *= operation. Read more

impl<'a> Neg for &'a Bn[src]

type Output = Bn

The resulting type after applying the - operator.

fn neg(self) -> Self::Output[src]

Performs the unary - operation. Read more

impl Neg for Bn[src]

type Output = Bn

The resulting type after applying the - operator.

fn neg(self) -> Self::Output[src]

Performs the unary - operation. Read more

impl Ord for Bn[src]

fn cmp(&self, other: &Bn) -> Ordering[src]

This method returns an Ordering between self and other. Read more

#[must_use]
fn max(self, other: Self) -> Self
1.21.0[src]

Compares and returns the maximum of two values. Read more

#[must_use]
fn min(self, other: Self) -> Self
1.21.0[src]

Compares and returns the minimum of two values. Read more

#[must_use]
fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]

Restrict a value to a certain interval. Read more

impl PartialEq<Bn> for Bn[src]

fn eq(&self, other: &Self) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl PartialOrd<Bn> for Bn[src]

fn partial_cmp(&self, other: &Bn) -> Option<Ordering>[src]

This method returns an ordering between self and other values if one exists. Read more

#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests less than (for self and other) and is used by the < operator. Read more

#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Product<Bn> for Bn[src]

fn product<I: Iterator<Item = Bn>>(iter: I) -> Self[src]

Method which takes an iterator and generates Self from the elements by multiplying the items. Read more

impl<'a, 'b> Rem<&'b Bn> for &'a Bn[src]

type Output = Bn

The resulting type after applying the % operator.

fn rem(self, rhs: &'b Self::Output) -> Self::Output[src]

Performs the % operation. Read more

impl<'b> Rem<&'b Bn> for Bn[src]

type Output = Bn

The resulting type after applying the % operator.

fn rem(self, rhs: &'b Self::Output) -> Self::Output[src]

Performs the % operation. Read more

impl<'a> Rem<Bn> for &'a Bn[src]

type Output = Bn

The resulting type after applying the % operator.

fn rem(self, rhs: Self::Output) -> Self::Output[src]

Performs the % operation. Read more

impl Rem<Bn> for Bn[src]

type Output = Bn

The resulting type after applying the % operator.

fn rem(self, rhs: Self::Output) -> Self::Output[src]

Performs the % operation. Read more

impl<'a> Rem<i16> for &'a Bn[src]

type Output = Bn

The resulting type after applying the % operator.

fn rem(self, rhs: i16) -> Self::Output[src]

Performs the % operation. Read more

impl Rem<i16> for Bn[src]

type Output = Bn

The resulting type after applying the % operator.

fn rem(self, rhs: i16) -> Self::Output[src]

Performs the % operation. Read more

impl<'a> Rem<i32> for &'a Bn[src]

type Output = Bn

The resulting type after applying the % operator.

fn rem(self, rhs: i32) -> Self::Output[src]

Performs the % operation. Read more

impl Rem<i32> for Bn[src]

type Output = Bn

The resulting type after applying the % operator.

fn rem(self, rhs: i32) -> Self::Output[src]

Performs the % operation. Read more

impl<'a> Rem<i64> for &'a Bn[src]

type Output = Bn

The resulting type after applying the % operator.

fn rem(self, rhs: i64) -> Self::Output[src]

Performs the % operation. Read more

impl Rem<i64> for Bn[src]

type Output = Bn

The resulting type after applying the % operator.

fn rem(self, rhs: i64) -> Self::Output[src]

Performs the % operation. Read more

impl<'a> Rem<i8> for &'a Bn[src]

type Output = Bn

The resulting type after applying the % operator.

fn rem(self, rhs: i8) -> Self::Output[src]

Performs the % operation. Read more

impl Rem<i8> for Bn[src]

type Output = Bn

The resulting type after applying the % operator.

fn rem(self, rhs: i8) -> Self::Output[src]

Performs the % operation. Read more

impl<'a> Rem<isize> for &'a Bn[src]

type Output = Bn

The resulting type after applying the % operator.

fn rem(self, rhs: isize) -> Self::Output[src]

Performs the % operation. Read more

impl Rem<isize> for Bn[src]

type Output = Bn

The resulting type after applying the % operator.

fn rem(self, rhs: isize) -> Self::Output[src]

Performs the % operation. Read more

impl<'a> Rem<u16> for &'a Bn[src]

type Output = Bn

The resulting type after applying the % operator.

fn rem(self, rhs: u16) -> Self::Output[src]

Performs the % operation. Read more

impl Rem<u16> for Bn[src]

type Output = Bn

The resulting type after applying the % operator.

fn rem(self, rhs: u16) -> Self::Output[src]

Performs the % operation. Read more

impl<'a> Rem<u32> for &'a Bn[src]

type Output = Bn

The resulting type after applying the % operator.

fn rem(self, rhs: u32) -> Self::Output[src]

Performs the % operation. Read more

impl Rem<u32> for Bn[src]

type Output = Bn

The resulting type after applying the % operator.

fn rem(self, rhs: u32) -> Self::Output[src]

Performs the % operation. Read more

impl<'a> Rem<u64> for &'a Bn[src]

type Output = Bn

The resulting type after applying the % operator.

fn rem(self, rhs: u64) -> Self::Output[src]

Performs the % operation. Read more

impl Rem<u64> for Bn[src]

type Output = Bn

The resulting type after applying the % operator.

fn rem(self, rhs: u64) -> Self::Output[src]

Performs the % operation. Read more

impl<'a> Rem<u8> for &'a Bn[src]

type Output = Bn

The resulting type after applying the % operator.

fn rem(self, rhs: u8) -> Self::Output[src]

Performs the % operation. Read more

impl Rem<u8> for Bn[src]

type Output = Bn

The resulting type after applying the % operator.

fn rem(self, rhs: u8) -> Self::Output[src]

Performs the % operation. Read more

impl<'a> Rem<usize> for &'a Bn[src]

type Output = Bn

The resulting type after applying the % operator.

fn rem(self, rhs: usize) -> Self::Output[src]

Performs the % operation. Read more

impl Rem<usize> for Bn[src]

type Output = Bn

The resulting type after applying the % operator.

fn rem(self, rhs: usize) -> Self::Output[src]

Performs the % operation. Read more

impl<'b> RemAssign<&'b Bn> for Bn[src]

fn rem_assign(&mut self, rhs: &'b Bn)[src]

Performs the %= operation. Read more

impl RemAssign<Bn> for Bn[src]

fn rem_assign(&mut self, rhs: Bn)[src]

Performs the %= operation. Read more

impl RemAssign<i16> for Bn[src]

fn rem_assign(&mut self, rhs: i16)[src]

Performs the %= operation. Read more

impl RemAssign<i32> for Bn[src]

fn rem_assign(&mut self, rhs: i32)[src]

Performs the %= operation. Read more

impl RemAssign<i64> for Bn[src]

fn rem_assign(&mut self, rhs: i64)[src]

Performs the %= operation. Read more

impl RemAssign<i8> for Bn[src]

fn rem_assign(&mut self, rhs: i8)[src]

Performs the %= operation. Read more

impl RemAssign<isize> for Bn[src]

fn rem_assign(&mut self, rhs: isize)[src]

Performs the %= operation. Read more

impl RemAssign<u16> for Bn[src]

fn rem_assign(&mut self, rhs: u16)[src]

Performs the %= operation. Read more

impl RemAssign<u32> for Bn[src]

fn rem_assign(&mut self, rhs: u32)[src]

Performs the %= operation. Read more

impl RemAssign<u64> for Bn[src]

fn rem_assign(&mut self, rhs: u64)[src]

Performs the %= operation. Read more

impl RemAssign<u8> for Bn[src]

fn rem_assign(&mut self, rhs: u8)[src]

Performs the %= operation. Read more

impl RemAssign<usize> for Bn[src]

fn rem_assign(&mut self, rhs: usize)[src]

Performs the %= operation. Read more

impl Serialize for Bn[src]

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

Serialize this value into the given Serde serializer. Read more

impl<'a> Shl<i16> for &'a Bn[src]

type Output = Bn

The resulting type after applying the << operator.

fn shl(self, rhs: i16) -> Self::Output[src]

Performs the << operation. Read more

impl Shl<i16> for Bn[src]

type Output = Bn

The resulting type after applying the << operator.

fn shl(self, rhs: i16) -> Self::Output[src]

Performs the << operation. Read more

impl<'a> Shl<i32> for &'a Bn[src]

type Output = Bn

The resulting type after applying the << operator.

fn shl(self, rhs: i32) -> Self::Output[src]

Performs the << operation. Read more

impl Shl<i32> for Bn[src]

type Output = Bn

The resulting type after applying the << operator.

fn shl(self, rhs: i32) -> Self::Output[src]

Performs the << operation. Read more

impl<'a> Shl<i64> for &'a Bn[src]

type Output = Bn

The resulting type after applying the << operator.

fn shl(self, rhs: i64) -> Self::Output[src]

Performs the << operation. Read more

impl Shl<i64> for Bn[src]

type Output = Bn

The resulting type after applying the << operator.

fn shl(self, rhs: i64) -> Self::Output[src]

Performs the << operation. Read more

impl<'a> Shl<i8> for &'a Bn[src]

type Output = Bn

The resulting type after applying the << operator.

fn shl(self, rhs: i8) -> Self::Output[src]

Performs the << operation. Read more

impl Shl<i8> for Bn[src]

type Output = Bn

The resulting type after applying the << operator.

fn shl(self, rhs: i8) -> Self::Output[src]

Performs the << operation. Read more

impl<'a> Shl<isize> for &'a Bn[src]

type Output = Bn

The resulting type after applying the << operator.

fn shl(self, rhs: isize) -> Self::Output[src]

Performs the << operation. Read more

impl Shl<isize> for Bn[src]

type Output = Bn

The resulting type after applying the << operator.

fn shl(self, rhs: isize) -> Self::Output[src]

Performs the << operation. Read more

impl<'a> Shl<u16> for &'a Bn[src]

type Output = Bn

The resulting type after applying the << operator.

fn shl(self, rhs: u16) -> Self::Output[src]

Performs the << operation. Read more

impl Shl<u16> for Bn[src]

type Output = Bn

The resulting type after applying the << operator.

fn shl(self, rhs: u16) -> Self::Output[src]

Performs the << operation. Read more

impl<'a> Shl<u32> for &'a Bn[src]

type Output = Bn

The resulting type after applying the << operator.

fn shl(self, rhs: u32) -> Self::Output[src]

Performs the << operation. Read more

impl Shl<u32> for Bn[src]

type Output = Bn

The resulting type after applying the << operator.

fn shl(self, rhs: u32) -> Self::Output[src]

Performs the << operation. Read more

impl<'a> Shl<u64> for &'a Bn[src]

type Output = Bn

The resulting type after applying the << operator.

fn shl(self, rhs: u64) -> Self::Output[src]

Performs the << operation. Read more

impl Shl<u64> for Bn[src]

type Output = Bn

The resulting type after applying the << operator.

fn shl(self, rhs: u64) -> Self::Output[src]

Performs the << operation. Read more

impl<'a> Shl<u8> for &'a Bn[src]

type Output = Bn

The resulting type after applying the << operator.

fn shl(self, rhs: u8) -> Self::Output[src]

Performs the << operation. Read more

impl Shl<u8> for Bn[src]

type Output = Bn

The resulting type after applying the << operator.

fn shl(self, rhs: u8) -> Self::Output[src]

Performs the << operation. Read more

impl<'a> Shl<usize> for &'a Bn[src]

type Output = Bn

The resulting type after applying the << operator.

fn shl(self, rhs: usize) -> Self::Output[src]

Performs the << operation. Read more

impl Shl<usize> for Bn[src]

type Output = Bn

The resulting type after applying the << operator.

fn shl(self, rhs: usize) -> Self::Output[src]

Performs the << operation. Read more

impl<'a> Shr<i16> for &'a Bn[src]

type Output = Bn

The resulting type after applying the >> operator.

fn shr(self, rhs: i16) -> Self::Output[src]

Performs the >> operation. Read more

impl Shr<i16> for Bn[src]

type Output = Bn

The resulting type after applying the >> operator.

fn shr(self, rhs: i16) -> Self::Output[src]

Performs the >> operation. Read more

impl<'a> Shr<i32> for &'a Bn[src]

type Output = Bn

The resulting type after applying the >> operator.

fn shr(self, rhs: i32) -> Self::Output[src]

Performs the >> operation. Read more

impl Shr<i32> for Bn[src]

type Output = Bn

The resulting type after applying the >> operator.

fn shr(self, rhs: i32) -> Self::Output[src]

Performs the >> operation. Read more

impl<'a> Shr<i64> for &'a Bn[src]

type Output = Bn

The resulting type after applying the >> operator.

fn shr(self, rhs: i64) -> Self::Output[src]

Performs the >> operation. Read more

impl Shr<i64> for Bn[src]

type Output = Bn

The resulting type after applying the >> operator.

fn shr(self, rhs: i64) -> Self::Output[src]

Performs the >> operation. Read more

impl<'a> Shr<i8> for &'a Bn[src]

type Output = Bn

The resulting type after applying the >> operator.

fn shr(self, rhs: i8) -> Self::Output[src]

Performs the >> operation. Read more

impl Shr<i8> for Bn[src]

type Output = Bn

The resulting type after applying the >> operator.

fn shr(self, rhs: i8) -> Self::Output[src]

Performs the >> operation. Read more

impl<'a> Shr<isize> for &'a Bn[src]

type Output = Bn

The resulting type after applying the >> operator.

fn shr(self, rhs: isize) -> Self::Output[src]

Performs the >> operation. Read more

impl Shr<isize> for Bn[src]

type Output = Bn

The resulting type after applying the >> operator.

fn shr(self, rhs: isize) -> Self::Output[src]

Performs the >> operation. Read more

impl<'a> Shr<u16> for &'a Bn[src]

type Output = Bn

The resulting type after applying the >> operator.

fn shr(self, rhs: u16) -> Self::Output[src]

Performs the >> operation. Read more

impl Shr<u16> for Bn[src]

type Output = Bn

The resulting type after applying the >> operator.

fn shr(self, rhs: u16) -> Self::Output[src]

Performs the >> operation. Read more

impl<'a> Shr<u32> for &'a Bn[src]

type Output = Bn

The resulting type after applying the >> operator.

fn shr(self, rhs: u32) -> Self::Output[src]

Performs the >> operation. Read more

impl Shr<u32> for Bn[src]

type Output = Bn

The resulting type after applying the >> operator.

fn shr(self, rhs: u32) -> Self::Output[src]

Performs the >> operation. Read more

impl<'a> Shr<u64> for &'a Bn[src]

type Output = Bn

The resulting type after applying the >> operator.

fn shr(self, rhs: u64) -> Self::Output[src]

Performs the >> operation. Read more

impl Shr<u64> for Bn[src]

type Output = Bn

The resulting type after applying the >> operator.

fn shr(self, rhs: u64) -> Self::Output[src]

Performs the >> operation. Read more

impl<'a> Shr<u8> for &'a Bn[src]

type Output = Bn

The resulting type after applying the >> operator.

fn shr(self, rhs: u8) -> Self::Output[src]

Performs the >> operation. Read more

impl Shr<u8> for Bn[src]

type Output = Bn

The resulting type after applying the >> operator.

fn shr(self, rhs: u8) -> Self::Output[src]

Performs the >> operation. Read more

impl<'a> Shr<usize> for &'a Bn[src]

type Output = Bn

The resulting type after applying the >> operator.

fn shr(self, rhs: usize) -> Self::Output[src]

Performs the >> operation. Read more

impl Shr<usize> for Bn[src]

type Output = Bn

The resulting type after applying the >> operator.

fn shr(self, rhs: usize) -> Self::Output[src]

Performs the >> operation. Read more

impl<'a, 'b> Sub<&'b Bn> for &'a Bn[src]

type Output = Bn

The resulting type after applying the - operator.

fn sub(self, rhs: &'b Self::Output) -> Self::Output[src]

Performs the - operation. Read more

impl<'b> Sub<&'b Bn> for Bn[src]

type Output = Bn

The resulting type after applying the - operator.

fn sub(self, rhs: &'b Self::Output) -> Self::Output[src]

Performs the - operation. Read more

impl<'a> Sub<Bn> for &'a Bn[src]

type Output = Bn

The resulting type after applying the - operator.

fn sub(self, rhs: Self::Output) -> Self::Output[src]

Performs the - operation. Read more

impl Sub<Bn> for Bn[src]

type Output = Bn

The resulting type after applying the - operator.

fn sub(self, rhs: Self::Output) -> Self::Output[src]

Performs the - operation. Read more

impl<'a> Sub<i16> for &'a Bn[src]

type Output = Bn

The resulting type after applying the - operator.

fn sub(self, rhs: i16) -> Self::Output[src]

Performs the - operation. Read more

impl Sub<i16> for Bn[src]

type Output = Bn

The resulting type after applying the - operator.

fn sub(self, rhs: i16) -> Self::Output[src]

Performs the - operation. Read more

impl<'a> Sub<i32> for &'a Bn[src]

type Output = Bn

The resulting type after applying the - operator.

fn sub(self, rhs: i32) -> Self::Output[src]

Performs the - operation. Read more

impl Sub<i32> for Bn[src]

type Output = Bn

The resulting type after applying the - operator.

fn sub(self, rhs: i32) -> Self::Output[src]

Performs the - operation. Read more

impl<'a> Sub<i64> for &'a Bn[src]

type Output = Bn

The resulting type after applying the - operator.

fn sub(self, rhs: i64) -> Self::Output[src]

Performs the - operation. Read more

impl Sub<i64> for Bn[src]

type Output = Bn

The resulting type after applying the - operator.

fn sub(self, rhs: i64) -> Self::Output[src]

Performs the - operation. Read more

impl<'a> Sub<i8> for &'a Bn[src]

type Output = Bn

The resulting type after applying the - operator.

fn sub(self, rhs: i8) -> Self::Output[src]

Performs the - operation. Read more

impl Sub<i8> for Bn[src]

type Output = Bn

The resulting type after applying the - operator.

fn sub(self, rhs: i8) -> Self::Output[src]

Performs the - operation. Read more

impl<'a> Sub<isize> for &'a Bn[src]

type Output = Bn

The resulting type after applying the - operator.

fn sub(self, rhs: isize) -> Self::Output[src]

Performs the - operation. Read more

impl Sub<isize> for Bn[src]

type Output = Bn

The resulting type after applying the - operator.

fn sub(self, rhs: isize) -> Self::Output[src]

Performs the - operation. Read more

impl<'a> Sub<u16> for &'a Bn[src]

type Output = Bn

The resulting type after applying the - operator.

fn sub(self, rhs: u16) -> Self::Output[src]

Performs the - operation. Read more

impl Sub<u16> for Bn[src]

type Output = Bn

The resulting type after applying the - operator.

fn sub(self, rhs: u16) -> Self::Output[src]

Performs the - operation. Read more

impl<'a> Sub<u32> for &'a Bn[src]

type Output = Bn

The resulting type after applying the - operator.

fn sub(self, rhs: u32) -> Self::Output[src]

Performs the - operation. Read more

impl Sub<u32> for Bn[src]

type Output = Bn

The resulting type after applying the - operator.

fn sub(self, rhs: u32) -> Self::Output[src]

Performs the - operation. Read more

impl<'a> Sub<u64> for &'a Bn[src]

type Output = Bn

The resulting type after applying the - operator.

fn sub(self, rhs: u64) -> Self::Output[src]

Performs the - operation. Read more

impl Sub<u64> for Bn[src]

type Output = Bn

The resulting type after applying the - operator.

fn sub(self, rhs: u64) -> Self::Output[src]

Performs the - operation. Read more

impl<'a> Sub<u8> for &'a Bn[src]

type Output = Bn

The resulting type after applying the - operator.

fn sub(self, rhs: u8) -> Self::Output[src]

Performs the - operation. Read more

impl Sub<u8> for Bn[src]

type Output = Bn

The resulting type after applying the - operator.

fn sub(self, rhs: u8) -> Self::Output[src]

Performs the - operation. Read more

impl<'a> Sub<usize> for &'a Bn[src]

type Output = Bn

The resulting type after applying the - operator.

fn sub(self, rhs: usize) -> Self::Output[src]

Performs the - operation. Read more

impl Sub<usize> for Bn[src]

type Output = Bn

The resulting type after applying the - operator.

fn sub(self, rhs: usize) -> Self::Output[src]

Performs the - operation. Read more

impl<'b> SubAssign<&'b Bn> for Bn[src]

fn sub_assign(&mut self, rhs: &'b Bn)[src]

Performs the -= operation. Read more

impl SubAssign<Bn> for Bn[src]

fn sub_assign(&mut self, rhs: Bn)[src]

Performs the -= operation. Read more

impl SubAssign<i16> for Bn[src]

fn sub_assign(&mut self, rhs: i16)[src]

Performs the -= operation. Read more

impl SubAssign<i32> for Bn[src]

fn sub_assign(&mut self, rhs: i32)[src]

Performs the -= operation. Read more

impl SubAssign<i64> for Bn[src]

fn sub_assign(&mut self, rhs: i64)[src]

Performs the -= operation. Read more

impl SubAssign<i8> for Bn[src]

fn sub_assign(&mut self, rhs: i8)[src]

Performs the -= operation. Read more

impl SubAssign<isize> for Bn[src]

fn sub_assign(&mut self, rhs: isize)[src]

Performs the -= operation. Read more

impl SubAssign<u16> for Bn[src]

fn sub_assign(&mut self, rhs: u16)[src]

Performs the -= operation. Read more

impl SubAssign<u32> for Bn[src]

fn sub_assign(&mut self, rhs: u32)[src]

Performs the -= operation. Read more

impl SubAssign<u64> for Bn[src]

fn sub_assign(&mut self, rhs: u64)[src]

Performs the -= operation. Read more

impl SubAssign<u8> for Bn[src]

fn sub_assign(&mut self, rhs: u8)[src]

Performs the -= operation. Read more

impl SubAssign<usize> for Bn[src]

fn sub_assign(&mut self, rhs: usize)[src]

Performs the -= operation. Read more

impl Sum<Bn> for Bn[src]

fn sum<I: Iterator<Item = Bn>>(iter: I) -> Self[src]

Method which takes an iterator and generates Self from the elements by “summing up” the items. Read more

impl Zeroize for Bn[src]

fn zeroize(&mut self)[src]

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

impl Eq for Bn[src]

Auto Trait Implementations

impl RefUnwindSafe for Bn

impl Send for Bn

impl Sync for Bn

impl Unpin for Bn

impl UnwindSafe for Bn

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

pub fn to_owned(&self) -> T[src]

Creates owned data from borrowed data, usually by cloning. Read more

pub fn clone_into(&self, target: &mut T)[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

impl<T> ToString for T where
    T: Display + ?Sized
[src]

pub default fn to_string(&self) -> String[src]

Converts the given value to a String. Read more

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

pub fn vzip(self) -> V

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

impl<T, Rhs> NumAssignOps<Rhs> for T where
    T: AddAssign<Rhs> + SubAssign<Rhs> + MulAssign<Rhs> + DivAssign<Rhs> + RemAssign<Rhs>, 
[src]

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>, 
[src]

impl<T, Base> RefNum<Base> for T where
    T: NumOps<Base, Base> + for<'r> NumOps<&'r Base, Base>, 
[src]