Crates.io | rust-bigint |
lib.rs | rust-bigint |
version | 1.2.0 |
source | src |
created_at | 2020-09-21 23:03:14.482778 |
updated_at | 2021-09-16 14:32:56.345448 |
description | Common traits and methods for multiple BigInt implementations |
homepage | |
repository | https://github.com/nash-io/rust-bigint |
max_upload_size | |
id | 291344 |
size | 33,001 |
Provides traits for common functionality across several Rust BigInt implementations
// 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.