pub struct BigUint(/* private fields */);Expand description
An arbitrary-precision unsigned integer: 32-bit limbs, least significant first, without most significant zero limbs.
+ and * also take references (&a + &b), and += and *= take
&BigUint; a += &b reuses a’s limbs.
Implementations§
Trait Implementations§
Source§impl AddAssign for BigUint
impl AddAssign for BigUint
Source§fn add_assign(&mut self, other: Self)
fn add_assign(&mut self, other: Self)
Performs the
+= operation. Read moreSource§impl AddAssign<&BigUint> for BigUint
impl AddAssign<&BigUint> for BigUint
Source§fn add_assign(&mut self, other: &BigUint)
fn add_assign(&mut self, other: &BigUint)
Adds in place, reusing this value’s limbs.
impl Eq for BigUint
Source§impl ExactNumber for BigUint
impl ExactNumber for BigUint
Source§impl MulAssign for BigUint
impl MulAssign for BigUint
Source§fn mul_assign(&mut self, other: Self)
fn mul_assign(&mut self, other: Self)
Performs the
*= operation. Read moreSource§impl MulAssign<&BigUint> for BigUint
impl MulAssign<&BigUint> for BigUint
Source§fn mul_assign(&mut self, other: &BigUint)
fn mul_assign(&mut self, other: &BigUint)
Performs the
*= operation. Read moreSource§impl Ord for BigUint
impl Ord for BigUint
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for BigUint
impl PartialOrd for BigUint
impl StructuralPartialEq for BigUint
Auto Trait Implementations§
impl Forget for BigUint
impl Freeze for BigUint
impl Move for BigUint
impl RefUnwindSafe for BigUint
impl Send for BigUint
impl Sync for BigUint
impl Unpin for BigUint
impl UnsafeUnpin 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