Expand description
§arbi
arbi implements an Arbitrary Precision Integer type: Arbi.
§Features
-
No dependencies by default.
If you need to generate random arbitrary integers, enable the
randfeature, which depends on the rand crate. -
no_std.This crate is
no_stdand utilizes thealloccrate for dynamic memory allocation.Enable the
stdfeature if you needstd::error::Errorimplementations for error types (it is not used for other purposes). -
forbid(unsafe_code).Statically guarantees that crate code does not use
unsafeRust. -
Pure Rust implementation.
§License
This project is dual-licensed under either the Apache License, Version 2.0 or the MIT License, at your option.
§Contributing
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this project by you shall be dual-licensed as above, without any additional terms or conditions.
Re-exports§
Modules§
- Defines a type used by
Arbi::from_str_base()andArbi::to_string_base()for converting between strings andArbiintegers. - Extended documentation.
Structs§
- Arbitrary Precision Integer type.
Enums§
- Errors that occur when parsing a string into an
Arbi.
Traits§
- Assign a value of type
Tto an integer. - Test if an
Arbiinteger fits within the range of typeT. - Return
selfto the powerexponent. - Random
Arbi randTrait for generating randomArbiintegers.
Type Aliases§
- Unsigned integer type used for counts of bits.
- Unsigned integer type representing a base-
Arbi::BASEdigit.