Struct bigmaths::BigInt [] [src]

pub struct BigInt { /* fields omitted */ }

An arbitrary-precision integer. Addition and substraction are now supported.

Methods

impl BigInt
[src]

Attempts to convert self to isize, returning None if overflow occurred.

Returns the sign.

Returns the digits of the number with radix std::usize::MAX + 1.

Trait Implementations

impl Debug for BigInt
[src]

Formats the value using the given formatter.

impl PartialEq for BigInt
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for BigInt
[src]

impl Clone for BigInt
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl From<usize> for BigInt
[src]

Performs the conversion.

impl From<isize> for BigInt
[src]

Performs the conversion.

impl<'a> From<(Sign, &'a [usize])> for BigInt
[src]

Performs the conversion.

impl Neg for BigInt
[src]

The resulting type after applying the - operator

The method for the unary - operator

impl Add for BigInt
[src]

The resulting type after applying the + operator

The method for the + operator

impl Sub for BigInt
[src]

The resulting type after applying the - operator

The method for the - operator