[−][src]Trait num::integer::Integer
Required Methods
fn div_floor(&self, other: &Self) -> Self
Floored integer division.
Examples
assert!(( 8).div_floor(& 3) == 2); assert!(( 8).div_floor(&-3) == -3); assert!((-8).div_floor(& 3) == -3); assert!((-8).div_floor(&-3) == 2); assert!(( 1).div_floor(& 2) == 0); assert!(( 1).div_floor(&-2) == -1); assert!((-1).div_floor(& 2) == -1); assert!((-1).div_floor(&-2) == 0);
fn mod_floor(&self, other: &Self) -> Self
Floored integer modulo, satisfying:
assert!(n.div_floor(&d) * d + n.mod_floor(&d) == n)
Examples
assert!(( 8).mod_floor(& 3) == 2); assert!(( 8).mod_floor(&-3) == -1); assert!((-8).mod_floor(& 3) == 1); assert!((-8).mod_floor(&-3) == -2); assert!(( 1).mod_floor(& 2) == 1); assert!(( 1).mod_floor(&-2) == -1); assert!((-1).mod_floor(& 2) == 1); assert!((-1).mod_floor(&-2) == -1);
fn gcd(&self, other: &Self) -> Self
fn lcm(&self, other: &Self) -> Self
fn divides(&self, other: &Self) -> bool
Deprecated, use is_multiple_of instead.
fn is_multiple_of(&self, other: &Self) -> bool
Returns true if self is a multiple of other.
Examples
assert_eq!(9.is_multiple_of(&3), true); assert_eq!(3.is_multiple_of(&9), false);
fn is_even(&self) -> bool
Returns true if the number is even.
Examples
assert_eq!(3.is_even(), false); assert_eq!(4.is_even(), true);
fn is_odd(&self) -> bool
Returns true if the number is odd.
Examples
assert_eq!(3.is_odd(), true); assert_eq!(4.is_odd(), false);
fn div_rem(&self, other: &Self) -> (Self, Self)
Simultaneous truncated integer division and modulus.
Returns (quotient, remainder).
Examples
assert_eq!(( 8).div_rem( &3), ( 2, 2)); assert_eq!(( 8).div_rem(&-3), (-2, 2)); assert_eq!((-8).div_rem( &3), (-2, -2)); assert_eq!((-8).div_rem(&-3), ( 2, -2)); assert_eq!(( 1).div_rem( &2), ( 0, 1)); assert_eq!(( 1).div_rem(&-2), ( 0, 1)); assert_eq!((-1).div_rem( &2), ( 0, -1)); assert_eq!((-1).div_rem(&-2), ( 0, -1));
Provided Methods
fn div_mod_floor(&self, other: &Self) -> (Self, Self)
Simultaneous floored integer division and modulus.
Returns (quotient, remainder).
Examples
assert_eq!(( 8).div_mod_floor( &3), ( 2, 2)); assert_eq!(( 8).div_mod_floor(&-3), (-3, -1)); assert_eq!((-8).div_mod_floor( &3), (-3, 1)); assert_eq!((-8).div_mod_floor(&-3), ( 2, -2)); assert_eq!(( 1).div_mod_floor( &2), ( 0, 1)); assert_eq!(( 1).div_mod_floor(&-2), (-1, -1)); assert_eq!((-1).div_mod_floor( &2), (-1, 1)); assert_eq!((-1).div_mod_floor(&-2), ( 0, -1));
Implementations on Foreign Types
impl Integer for u8[src]
impl Integer for u8fn div_floor(&self, other: &u8) -> u8[src]
fn div_floor(&self, other: &u8) -> u8Unsigned integer division. Returns the same result as div (/).
fn mod_floor(&self, other: &u8) -> u8[src]
fn mod_floor(&self, other: &u8) -> u8Unsigned integer modulo operation. Returns the same result as rem (%).
fn gcd(&self, other: &u8) -> u8[src]
fn gcd(&self, other: &u8) -> u8Calculates the Greatest Common Divisor (GCD) of the number and other
fn lcm(&self, other: &u8) -> u8[src]
fn lcm(&self, other: &u8) -> u8Calculates the Lowest Common Multiple (LCM) of the number and other.
fn divides(&self, other: &u8) -> bool[src]
fn divides(&self, other: &u8) -> boolDeprecated, use is_multiple_of instead.
fn is_multiple_of(&self, other: &u8) -> bool[src]
fn is_multiple_of(&self, other: &u8) -> boolReturns true if the number is a multiple of other.
fn is_even(&self) -> bool[src]
fn is_even(&self) -> boolReturns true if the number is divisible by 2.
fn is_odd(&self) -> bool[src]
fn is_odd(&self) -> boolReturns true if the number is not divisible by 2.
fn div_rem(&self, other: &u8) -> (u8, u8)[src]
fn div_rem(&self, other: &u8) -> (u8, u8)Simultaneous truncated integer division and modulus.
fn div_mod_floor(&self, other: &Self) -> (Self, Self)[src]
fn div_mod_floor(&self, other: &Self) -> (Self, Self)impl Integer for u16[src]
impl Integer for u16fn div_floor(&self, other: &u16) -> u16[src]
fn div_floor(&self, other: &u16) -> u16Unsigned integer division. Returns the same result as div (/).
fn mod_floor(&self, other: &u16) -> u16[src]
fn mod_floor(&self, other: &u16) -> u16Unsigned integer modulo operation. Returns the same result as rem (%).
fn gcd(&self, other: &u16) -> u16[src]
fn gcd(&self, other: &u16) -> u16Calculates the Greatest Common Divisor (GCD) of the number and other
fn lcm(&self, other: &u16) -> u16[src]
fn lcm(&self, other: &u16) -> u16Calculates the Lowest Common Multiple (LCM) of the number and other.
fn divides(&self, other: &u16) -> bool[src]
fn divides(&self, other: &u16) -> boolDeprecated, use is_multiple_of instead.
fn is_multiple_of(&self, other: &u16) -> bool[src]
fn is_multiple_of(&self, other: &u16) -> boolReturns true if the number is a multiple of other.
fn is_even(&self) -> bool[src]
fn is_even(&self) -> boolReturns true if the number is divisible by 2.
fn is_odd(&self) -> bool[src]
fn is_odd(&self) -> boolReturns true if the number is not divisible by 2.
fn div_rem(&self, other: &u16) -> (u16, u16)[src]
fn div_rem(&self, other: &u16) -> (u16, u16)Simultaneous truncated integer division and modulus.
fn div_mod_floor(&self, other: &Self) -> (Self, Self)[src]
fn div_mod_floor(&self, other: &Self) -> (Self, Self)impl Integer for i128[src]
impl Integer for i128fn div_floor(&self, other: &i128) -> i128[src]
fn div_floor(&self, other: &i128) -> i128Floored integer division
fn mod_floor(&self, other: &i128) -> i128[src]
fn mod_floor(&self, other: &i128) -> i128Floored integer modulo
fn div_mod_floor(&self, other: &i128) -> (i128, i128)[src]
fn div_mod_floor(&self, other: &i128) -> (i128, i128)Calculates div_floor and mod_floor simultaneously
fn gcd(&self, other: &i128) -> i128[src]
fn gcd(&self, other: &i128) -> i128Calculates the Greatest Common Divisor (GCD) of the number and
other. The result is always positive.
fn lcm(&self, other: &i128) -> i128[src]
fn lcm(&self, other: &i128) -> i128Calculates the Lowest Common Multiple (LCM) of the number and
other.
fn divides(&self, other: &i128) -> bool[src]
fn divides(&self, other: &i128) -> boolDeprecated, use is_multiple_of instead.
fn is_multiple_of(&self, other: &i128) -> bool[src]
fn is_multiple_of(&self, other: &i128) -> boolReturns true if the number is a multiple of other.
fn is_even(&self) -> bool[src]
fn is_even(&self) -> boolReturns true if the number is divisible by 2
fn is_odd(&self) -> bool[src]
fn is_odd(&self) -> boolReturns true if the number is not divisible by 2
fn div_rem(&self, other: &i128) -> (i128, i128)[src]
fn div_rem(&self, other: &i128) -> (i128, i128)Simultaneous truncated integer division and modulus.
impl Integer for u128[src]
impl Integer for u128fn div_floor(&self, other: &u128) -> u128[src]
fn div_floor(&self, other: &u128) -> u128Unsigned integer division. Returns the same result as div (/).
fn mod_floor(&self, other: &u128) -> u128[src]
fn mod_floor(&self, other: &u128) -> u128Unsigned integer modulo operation. Returns the same result as rem (%).
fn gcd(&self, other: &u128) -> u128[src]
fn gcd(&self, other: &u128) -> u128Calculates the Greatest Common Divisor (GCD) of the number and other
fn lcm(&self, other: &u128) -> u128[src]
fn lcm(&self, other: &u128) -> u128Calculates the Lowest Common Multiple (LCM) of the number and other.
fn divides(&self, other: &u128) -> bool[src]
fn divides(&self, other: &u128) -> boolDeprecated, use is_multiple_of instead.
fn is_multiple_of(&self, other: &u128) -> bool[src]
fn is_multiple_of(&self, other: &u128) -> boolReturns true if the number is a multiple of other.
fn is_even(&self) -> bool[src]
fn is_even(&self) -> boolReturns true if the number is divisible by 2.
fn is_odd(&self) -> bool[src]
fn is_odd(&self) -> boolReturns true if the number is not divisible by 2.
fn div_rem(&self, other: &u128) -> (u128, u128)[src]
fn div_rem(&self, other: &u128) -> (u128, u128)Simultaneous truncated integer division and modulus.
fn div_mod_floor(&self, other: &Self) -> (Self, Self)[src]
fn div_mod_floor(&self, other: &Self) -> (Self, Self)impl Integer for i8[src]
impl Integer for i8fn div_floor(&self, other: &i8) -> i8[src]
fn div_floor(&self, other: &i8) -> i8Floored integer division
fn mod_floor(&self, other: &i8) -> i8[src]
fn mod_floor(&self, other: &i8) -> i8Floored integer modulo
fn div_mod_floor(&self, other: &i8) -> (i8, i8)[src]
fn div_mod_floor(&self, other: &i8) -> (i8, i8)Calculates div_floor and mod_floor simultaneously
fn gcd(&self, other: &i8) -> i8[src]
fn gcd(&self, other: &i8) -> i8Calculates the Greatest Common Divisor (GCD) of the number and
other. The result is always positive.
fn lcm(&self, other: &i8) -> i8[src]
fn lcm(&self, other: &i8) -> i8Calculates the Lowest Common Multiple (LCM) of the number and
other.
fn divides(&self, other: &i8) -> bool[src]
fn divides(&self, other: &i8) -> boolDeprecated, use is_multiple_of instead.
fn is_multiple_of(&self, other: &i8) -> bool[src]
fn is_multiple_of(&self, other: &i8) -> boolReturns true if the number is a multiple of other.
fn is_even(&self) -> bool[src]
fn is_even(&self) -> boolReturns true if the number is divisible by 2
fn is_odd(&self) -> bool[src]
fn is_odd(&self) -> boolReturns true if the number is not divisible by 2
fn div_rem(&self, other: &i8) -> (i8, i8)[src]
fn div_rem(&self, other: &i8) -> (i8, i8)Simultaneous truncated integer division and modulus.
impl Integer for u32[src]
impl Integer for u32fn div_floor(&self, other: &u32) -> u32[src]
fn div_floor(&self, other: &u32) -> u32Unsigned integer division. Returns the same result as div (/).
fn mod_floor(&self, other: &u32) -> u32[src]
fn mod_floor(&self, other: &u32) -> u32Unsigned integer modulo operation. Returns the same result as rem (%).
fn gcd(&self, other: &u32) -> u32[src]
fn gcd(&self, other: &u32) -> u32Calculates the Greatest Common Divisor (GCD) of the number and other
fn lcm(&self, other: &u32) -> u32[src]
fn lcm(&self, other: &u32) -> u32Calculates the Lowest Common Multiple (LCM) of the number and other.
fn divides(&self, other: &u32) -> bool[src]
fn divides(&self, other: &u32) -> boolDeprecated, use is_multiple_of instead.
fn is_multiple_of(&self, other: &u32) -> bool[src]
fn is_multiple_of(&self, other: &u32) -> boolReturns true if the number is a multiple of other.
fn is_even(&self) -> bool[src]
fn is_even(&self) -> boolReturns true if the number is divisible by 2.
fn is_odd(&self) -> bool[src]
fn is_odd(&self) -> boolReturns true if the number is not divisible by 2.
fn div_rem(&self, other: &u32) -> (u32, u32)[src]
fn div_rem(&self, other: &u32) -> (u32, u32)Simultaneous truncated integer division and modulus.
fn div_mod_floor(&self, other: &Self) -> (Self, Self)[src]
fn div_mod_floor(&self, other: &Self) -> (Self, Self)impl Integer for i64[src]
impl Integer for i64fn div_floor(&self, other: &i64) -> i64[src]
fn div_floor(&self, other: &i64) -> i64Floored integer division
fn mod_floor(&self, other: &i64) -> i64[src]
fn mod_floor(&self, other: &i64) -> i64Floored integer modulo
fn div_mod_floor(&self, other: &i64) -> (i64, i64)[src]
fn div_mod_floor(&self, other: &i64) -> (i64, i64)Calculates div_floor and mod_floor simultaneously
fn gcd(&self, other: &i64) -> i64[src]
fn gcd(&self, other: &i64) -> i64Calculates the Greatest Common Divisor (GCD) of the number and
other. The result is always positive.
fn lcm(&self, other: &i64) -> i64[src]
fn lcm(&self, other: &i64) -> i64Calculates the Lowest Common Multiple (LCM) of the number and
other.
fn divides(&self, other: &i64) -> bool[src]
fn divides(&self, other: &i64) -> boolDeprecated, use is_multiple_of instead.
fn is_multiple_of(&self, other: &i64) -> bool[src]
fn is_multiple_of(&self, other: &i64) -> boolReturns true if the number is a multiple of other.
fn is_even(&self) -> bool[src]
fn is_even(&self) -> boolReturns true if the number is divisible by 2
fn is_odd(&self) -> bool[src]
fn is_odd(&self) -> boolReturns true if the number is not divisible by 2
fn div_rem(&self, other: &i64) -> (i64, i64)[src]
fn div_rem(&self, other: &i64) -> (i64, i64)Simultaneous truncated integer division and modulus.
impl Integer for usize[src]
impl Integer for usizefn div_floor(&self, other: &usize) -> usize[src]
fn div_floor(&self, other: &usize) -> usizeUnsigned integer division. Returns the same result as div (/).
fn mod_floor(&self, other: &usize) -> usize[src]
fn mod_floor(&self, other: &usize) -> usizeUnsigned integer modulo operation. Returns the same result as rem (%).
fn gcd(&self, other: &usize) -> usize[src]
fn gcd(&self, other: &usize) -> usizeCalculates the Greatest Common Divisor (GCD) of the number and other
fn lcm(&self, other: &usize) -> usize[src]
fn lcm(&self, other: &usize) -> usizeCalculates the Lowest Common Multiple (LCM) of the number and other.
fn divides(&self, other: &usize) -> bool[src]
fn divides(&self, other: &usize) -> boolDeprecated, use is_multiple_of instead.
fn is_multiple_of(&self, other: &usize) -> bool[src]
fn is_multiple_of(&self, other: &usize) -> boolReturns true if the number is a multiple of other.
fn is_even(&self) -> bool[src]
fn is_even(&self) -> boolReturns true if the number is divisible by 2.
fn is_odd(&self) -> bool[src]
fn is_odd(&self) -> boolReturns true if the number is not divisible by 2.
fn div_rem(&self, other: &usize) -> (usize, usize)[src]
fn div_rem(&self, other: &usize) -> (usize, usize)Simultaneous truncated integer division and modulus.
fn div_mod_floor(&self, other: &Self) -> (Self, Self)[src]
fn div_mod_floor(&self, other: &Self) -> (Self, Self)impl Integer for i32[src]
impl Integer for i32fn div_floor(&self, other: &i32) -> i32[src]
fn div_floor(&self, other: &i32) -> i32Floored integer division
fn mod_floor(&self, other: &i32) -> i32[src]
fn mod_floor(&self, other: &i32) -> i32Floored integer modulo
fn div_mod_floor(&self, other: &i32) -> (i32, i32)[src]
fn div_mod_floor(&self, other: &i32) -> (i32, i32)Calculates div_floor and mod_floor simultaneously
fn gcd(&self, other: &i32) -> i32[src]
fn gcd(&self, other: &i32) -> i32Calculates the Greatest Common Divisor (GCD) of the number and
other. The result is always positive.
fn lcm(&self, other: &i32) -> i32[src]
fn lcm(&self, other: &i32) -> i32Calculates the Lowest Common Multiple (LCM) of the number and
other.
fn divides(&self, other: &i32) -> bool[src]
fn divides(&self, other: &i32) -> boolDeprecated, use is_multiple_of instead.
fn is_multiple_of(&self, other: &i32) -> bool[src]
fn is_multiple_of(&self, other: &i32) -> boolReturns true if the number is a multiple of other.
fn is_even(&self) -> bool[src]
fn is_even(&self) -> boolReturns true if the number is divisible by 2
fn is_odd(&self) -> bool[src]
fn is_odd(&self) -> boolReturns true if the number is not divisible by 2
fn div_rem(&self, other: &i32) -> (i32, i32)[src]
fn div_rem(&self, other: &i32) -> (i32, i32)Simultaneous truncated integer division and modulus.
impl Integer for u64[src]
impl Integer for u64fn div_floor(&self, other: &u64) -> u64[src]
fn div_floor(&self, other: &u64) -> u64Unsigned integer division. Returns the same result as div (/).
fn mod_floor(&self, other: &u64) -> u64[src]
fn mod_floor(&self, other: &u64) -> u64Unsigned integer modulo operation. Returns the same result as rem (%).
fn gcd(&self, other: &u64) -> u64[src]
fn gcd(&self, other: &u64) -> u64Calculates the Greatest Common Divisor (GCD) of the number and other
fn lcm(&self, other: &u64) -> u64[src]
fn lcm(&self, other: &u64) -> u64Calculates the Lowest Common Multiple (LCM) of the number and other.
fn divides(&self, other: &u64) -> bool[src]
fn divides(&self, other: &u64) -> boolDeprecated, use is_multiple_of instead.
fn is_multiple_of(&self, other: &u64) -> bool[src]
fn is_multiple_of(&self, other: &u64) -> boolReturns true if the number is a multiple of other.
fn is_even(&self) -> bool[src]
fn is_even(&self) -> boolReturns true if the number is divisible by 2.
fn is_odd(&self) -> bool[src]
fn is_odd(&self) -> boolReturns true if the number is not divisible by 2.
fn div_rem(&self, other: &u64) -> (u64, u64)[src]
fn div_rem(&self, other: &u64) -> (u64, u64)Simultaneous truncated integer division and modulus.
fn div_mod_floor(&self, other: &Self) -> (Self, Self)[src]
fn div_mod_floor(&self, other: &Self) -> (Self, Self)impl Integer for isize[src]
impl Integer for isizefn div_floor(&self, other: &isize) -> isize[src]
fn div_floor(&self, other: &isize) -> isizeFloored integer division
fn mod_floor(&self, other: &isize) -> isize[src]
fn mod_floor(&self, other: &isize) -> isizeFloored integer modulo
fn div_mod_floor(&self, other: &isize) -> (isize, isize)[src]
fn div_mod_floor(&self, other: &isize) -> (isize, isize)Calculates div_floor and mod_floor simultaneously
fn gcd(&self, other: &isize) -> isize[src]
fn gcd(&self, other: &isize) -> isizeCalculates the Greatest Common Divisor (GCD) of the number and
other. The result is always positive.
fn lcm(&self, other: &isize) -> isize[src]
fn lcm(&self, other: &isize) -> isizeCalculates the Lowest Common Multiple (LCM) of the number and
other.
fn divides(&self, other: &isize) -> bool[src]
fn divides(&self, other: &isize) -> boolDeprecated, use is_multiple_of instead.
fn is_multiple_of(&self, other: &isize) -> bool[src]
fn is_multiple_of(&self, other: &isize) -> boolReturns true if the number is a multiple of other.
fn is_even(&self) -> bool[src]
fn is_even(&self) -> boolReturns true if the number is divisible by 2
fn is_odd(&self) -> bool[src]
fn is_odd(&self) -> boolReturns true if the number is not divisible by 2
fn div_rem(&self, other: &isize) -> (isize, isize)[src]
fn div_rem(&self, other: &isize) -> (isize, isize)Simultaneous truncated integer division and modulus.
impl Integer for i16[src]
impl Integer for i16fn div_floor(&self, other: &i16) -> i16[src]
fn div_floor(&self, other: &i16) -> i16Floored integer division
fn mod_floor(&self, other: &i16) -> i16[src]
fn mod_floor(&self, other: &i16) -> i16Floored integer modulo
fn div_mod_floor(&self, other: &i16) -> (i16, i16)[src]
fn div_mod_floor(&self, other: &i16) -> (i16, i16)Calculates div_floor and mod_floor simultaneously
fn gcd(&self, other: &i16) -> i16[src]
fn gcd(&self, other: &i16) -> i16Calculates the Greatest Common Divisor (GCD) of the number and
other. The result is always positive.
fn lcm(&self, other: &i16) -> i16[src]
fn lcm(&self, other: &i16) -> i16Calculates the Lowest Common Multiple (LCM) of the number and
other.
fn divides(&self, other: &i16) -> bool[src]
fn divides(&self, other: &i16) -> boolDeprecated, use is_multiple_of instead.
fn is_multiple_of(&self, other: &i16) -> bool[src]
fn is_multiple_of(&self, other: &i16) -> boolReturns true if the number is a multiple of other.
fn is_even(&self) -> bool[src]
fn is_even(&self) -> boolReturns true if the number is divisible by 2
fn is_odd(&self) -> bool[src]
fn is_odd(&self) -> boolReturns true if the number is not divisible by 2
fn div_rem(&self, other: &i16) -> (i16, i16)[src]
fn div_rem(&self, other: &i16) -> (i16, i16)Simultaneous truncated integer division and modulus.
Implementors
impl Integer for BigInt[src]
impl Integer for BigIntfn div_rem(&self, other: &BigInt) -> (BigInt, BigInt)[src]
fn div_rem(&self, other: &BigInt) -> (BigInt, BigInt)fn div_floor(&self, other: &BigInt) -> BigInt[src]
fn div_floor(&self, other: &BigInt) -> BigIntfn mod_floor(&self, other: &BigInt) -> BigInt[src]
fn mod_floor(&self, other: &BigInt) -> BigIntfn div_mod_floor(&self, other: &BigInt) -> (BigInt, BigInt)[src]
fn div_mod_floor(&self, other: &BigInt) -> (BigInt, BigInt)fn gcd(&self, other: &BigInt) -> BigInt[src]
fn gcd(&self, other: &BigInt) -> BigIntCalculates the Greatest Common Divisor (GCD) of the number and other.
The result is always positive.
fn lcm(&self, other: &BigInt) -> BigInt[src]
fn lcm(&self, other: &BigInt) -> BigIntCalculates the Lowest Common Multiple (LCM) of the number and other.
fn divides(&self, other: &BigInt) -> bool[src]
fn divides(&self, other: &BigInt) -> boolDeprecated, use is_multiple_of instead.
fn is_multiple_of(&self, other: &BigInt) -> bool[src]
fn is_multiple_of(&self, other: &BigInt) -> boolReturns true if the number is a multiple of other.
fn is_even(&self) -> bool[src]
fn is_even(&self) -> boolReturns true if the number is divisible by 2.
fn is_odd(&self) -> bool[src]
fn is_odd(&self) -> boolReturns true if the number is not divisible by 2.
impl Integer for BigUint[src]
impl Integer for BigUintfn div_rem(&self, other: &BigUint) -> (BigUint, BigUint)[src]
fn div_rem(&self, other: &BigUint) -> (BigUint, BigUint)fn div_floor(&self, other: &BigUint) -> BigUint[src]
fn div_floor(&self, other: &BigUint) -> BigUintfn mod_floor(&self, other: &BigUint) -> BigUint[src]
fn mod_floor(&self, other: &BigUint) -> BigUintfn div_mod_floor(&self, other: &BigUint) -> (BigUint, BigUint)[src]
fn div_mod_floor(&self, other: &BigUint) -> (BigUint, BigUint)fn gcd(&self, other: &BigUint) -> BigUint[src]
fn gcd(&self, other: &BigUint) -> BigUintCalculates the Greatest Common Divisor (GCD) of the number and other.
The result is always positive.
fn lcm(&self, other: &BigUint) -> BigUint[src]
fn lcm(&self, other: &BigUint) -> BigUintCalculates the Lowest Common Multiple (LCM) of the number and other.
fn divides(&self, other: &BigUint) -> bool[src]
fn divides(&self, other: &BigUint) -> boolDeprecated, use is_multiple_of instead.
fn is_multiple_of(&self, other: &BigUint) -> bool[src]
fn is_multiple_of(&self, other: &BigUint) -> boolReturns true if the number is a multiple of other.
fn is_even(&self) -> bool[src]
fn is_even(&self) -> boolReturns true if the number is divisible by 2.
fn is_odd(&self) -> bool[src]
fn is_odd(&self) -> boolReturns true if the number is not divisible by 2.