Crate rust_bigint[][src]

Expand description

Provides traits for common functionality across several Rust BigInt implementations

Example interaction:

// import BigInt from this library. use a feature flag to select the BigInt you need
// also, pull one or more traits from this library into scope
use rust_bigint::BigInt;
use rust_bigint::traits::Converter;
let number = BigInt::from(42);
// now use one of the methods exposed by the converter trait
let hex_str = number.to_hex();

See the traits for more examples.


Serialization functions compatible with serde across BigInt representations

Traits to define common functionality across BigInt implementations. This is based on MIT/Apache-licensed

Type Definitions

Expose selected BigInt type (defaults to GMP)

Expose error type associated with selected BigInt type (defaults to GMP)