2 stable releases
1.2.0 | Sep 16, 2021 |
---|---|
1.1.0 | Sep 21, 2020 |
#762 in Algorithms
3,443 downloads per month
Used in 9 crates
(5 directly)
32KB
779 lines
rust-bigint
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.
lib.rs
:
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.
Dependencies
~0.4–1.3MB
~28K SLoC