Struct bigmaths::BigInt
[−]
[src]
pub struct BigInt { /* fields omitted */ }
An arbitrary-precision integer. Addition and substraction are now supported.
Methods
impl BigInt
[src]
fn to_isize(&self) -> Option<isize>
Attempts to convert self to isize, returning None
if overflow occurred.
fn sign(&self) -> Sign
Returns the sign.
fn limbs(&self) -> Vec<usize>
Returns the digits of the number with radix std::usize::MAX + 1.
Trait Implementations
impl Debug for BigInt
[src]
impl PartialEq for BigInt
[src]
fn eq(&self, __arg_0: &BigInt) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &BigInt) -> bool
This method tests for !=
.
impl Eq for BigInt
[src]
impl Clone for BigInt
[src]
fn clone(&self) -> BigInt
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl From<usize> for BigInt
[src]
impl From<isize> for BigInt
[src]
impl<'a> From<(Sign, &'a [usize])> for BigInt
[src]
impl Neg for BigInt
[src]
type Output = BigInt
The resulting type after applying the -
operator
fn neg(self) -> BigInt
The method for the unary -
operator
impl Add for BigInt
[src]
type Output = BigInt
The resulting type after applying the +
operator
fn add(self, other: BigInt) -> BigInt
The method for the +
operator