Module largeint::largeint[][src]

The module, largeint, is where the largeint struct is implemented along with a variety of useful methods and functions. Update 0.2.0 will introduce the capability to multiply and divide LargeInts. Currently only addition and subtraction are supported for the type LargeInt.

Structs

LargeInt

Arithmetic is carried out on an instance of LargeInt. The scalar value is stored in a in a String and its sign in the enum Sign.

Enums

Compare
Sign

Functions

new

While Largeint and its fields have been made public, it is strongly recommended that LargeInt creation is done through the new() function which will instantiate an instance of LargeInt safely, making the necessary corrections to the fields if necessary, or panicking if an invalid input was submitted.

to_vec
vec_to_str