1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
//! Unsigned big integers.

use self::word::Word;

use alloc::vec::Vec;

mod word;

/// An unsigned big integer.
pub struct UBig(UBigRepr);

/// Internal representation of UBig.
enum UBigRepr {
    /// A number that fits in a single Word.
    Small(Word),
    /// A number that does not fit in a single Word.
    Large(Vec<Word>),
}