pub struct BigUint {
pub value: Vec<u64>,
}
Fields§
§value: Vec<u64>
Implementations§
Source§impl BigUint
impl BigUint
pub const ZERO: BigUint
pub fn one() -> BigUint
pub fn normalize(&mut self)
pub fn is_one(&self) -> bool
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn is_zero(&self) -> bool
pub fn from_u64(n: u64) -> Self
pub fn pow(&self, exp: &BigUint) -> BigUint
pub fn pow_u64(&self, exp: u64) -> BigUint
pub fn get_last_bit(&self) -> u64
pub fn to_big_int(self) -> BigInt
pub fn div_mod(&self, b: &Self) -> (BigUint, BigUint)
Trait Implementations§
Source§impl Ord for BigUint
impl Ord for BigUint
Source§impl PartialOrd for BigUint
impl PartialOrd for BigUint
impl Eq for BigUint
impl StructuralPartialEq for BigUint
Auto Trait Implementations§
impl Freeze for BigUint
impl RefUnwindSafe for BigUint
impl Send for BigUint
impl Sync for BigUint
impl Unpin for BigUint
impl UnwindSafe for BigUint
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more