• Home
  • Raw
  • Download

Lines Matching defs:BigInt

62 pub struct BigInt {  struct
69 impl Clone for BigInt { argument
85 impl hash::Hash for BigInt { implementation
96 impl PartialEq for BigInt { implementation
105 impl Eq for BigInt {} implementation
107 impl PartialOrd for BigInt { implementation
114 impl Ord for BigInt { implementation
132 impl Default for BigInt { implementation
139 impl fmt::Debug for BigInt { implementation
145 impl fmt::Display for BigInt { implementation
151 impl fmt::Binary for BigInt { implementation
157 impl fmt::Octal for BigInt { implementation
163 impl fmt::LowerHex for BigInt { implementation
169 impl fmt::UpperHex for BigInt { implementation
181 impl Not for BigInt { implementation
184 fn not(mut self) -> BigInt { in not()
199 impl<'a> Not for &'a BigInt { implementation
202 fn not(self) -> BigInt { in not()
211 impl Zero for BigInt { implementation
232 impl One for BigInt { implementation
253 impl Signed for BigInt { implementation
255 fn abs(&self) -> BigInt { in abs()
263 fn abs_sub(&self, other: &BigInt) -> BigInt { in abs_sub()
272 fn signum(&self) -> BigInt { in signum()
335 impl Neg for BigInt { implementation
339 fn neg(mut self) -> BigInt { in neg()
345 impl<'a> Neg for &'a BigInt { implementation
349 fn neg(self) -> BigInt { in neg()
354 impl Integer for BigInt { implementation
356 fn div_rem(&self, other: &BigInt) -> (BigInt, BigInt) { in div_rem()
369 fn div_floor(&self, other: &BigInt) -> BigInt { in div_floor()
386 fn mod_floor(&self, other: &BigInt) -> BigInt { in mod_floor()
403 fn div_mod_floor(&self, other: &BigInt) -> (BigInt, BigInt) { in div_mod_floor()
442 fn gcd(&self, other: &BigInt) -> BigInt { in gcd()
448 fn lcm(&self, other: &BigInt) -> BigInt { in lcm()
455 fn gcd_lcm(&self, other: &BigInt) -> (BigInt, BigInt) { in gcd_lcm()
462 fn extended_gcd_lcm(&self, other: &BigInt) -> (num_integer::ExtendedGcd<BigInt>, BigInt) { in extended_gcd_lcm()
513 impl Roots for BigInt { implementation
535 impl IntDigits for BigInt { implementation
566 fn to_bigint(&self) -> Option<BigInt>; in to_bigint()
569 impl BigInt { implementation
574 pub fn new(sign: Sign, digits: Vec<u32>) -> BigInt { in new()
582 pub fn from_biguint(mut sign: Sign, mut data: BigUint) -> BigInt { in from_biguint()
596 pub fn from_slice(sign: Sign, slice: &[u32]) -> BigInt { in from_slice()
632 pub fn from_bytes_be(sign: Sign, bytes: &[u8]) -> BigInt { in from_bytes_be()
640 pub fn from_bytes_le(sign: Sign, bytes: &[u8]) -> BigInt { in from_bytes_le()
649 pub fn from_signed_bytes_be(digits: &[u8]) -> BigInt { in from_signed_bytes_be()
657 pub fn from_signed_bytes_le(digits: &[u8]) -> BigInt { in from_signed_bytes_le()
673 pub fn parse_bytes(buf: &[u8], radix: u32) -> Option<BigInt> { in parse_bytes()
694 pub fn from_radix_be(sign: Sign, buf: &[u8], radix: u32) -> Option<BigInt> { in from_radix_be()
715 pub fn from_radix_le(sign: Sign, buf: &[u8], radix: u32) -> Option<BigInt> { in from_radix_le()
989 pub fn checked_add(&self, v: &BigInt) -> Option<BigInt> { in checked_add()
994 pub fn checked_sub(&self, v: &BigInt) -> Option<BigInt> { in checked_sub()
999 pub fn checked_mul(&self, v: &BigInt) -> Option<BigInt> { in checked_mul()
1004 pub fn checked_div(&self, v: &BigInt) -> Option<BigInt> { in checked_div()