Expand description
§arbi
arbi
implements an Arbitrary Precision Integer type: Arbi
.
§Features
-
No dependencies by default.
If you need to generate random integers, enable the
rand
feature, which depends on the rand crate. -
no_std
.This crate is
no_std
and utilizes thealloc
crate for dynamic memory allocation.Enable the
std
feature if you needstd::error::Error
implementations for error types (it is not used for other purposes). -
forbid(unsafe_code)
.Statically guarantees that crate code does not use
unsafe
Rust. -
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§
- base
- Defines a type used by
Arbi::from_str_base()
andArbi::to_string_base()
for converting between strings andArbi
integers. - docs
- Extended documentation.
Structs§
- Arbi
- Arbitrary Precision Integer type.
Enums§
- Parse
Error - Errors that occur when parsing a string into an
Arbi
.
Traits§
- Assign
- Assign a value of type
T
to an integer. - Fits
- Test if an
Arbi
integer fits within the range of typeT
. - Pow
- Return
self
to the powerexponent
. - Random
Arbi rand
- Trait for generating random
Arbi
integers.
Type Aliases§
- BitCount
- Unsigned integer type used for counts of bits.
- Digit
- Unsigned integer type representing a base-
Arbi::BASE
digit.