Crate awint_core

source ·
Expand description

Arbitrary width integers library

This is the core library of the awint system of crates. This crate is strictly no-std and no-alloc, not even requiring an allocator to be compiled. This crate supplies the Bits reference type and the InlAwi storage type.

Modules

Subset of awint::awi

Structs

A reference to the bits in an InlAwi, ExtAwi, or other backing construct. If a function is written just in terms of Bits, it can work on mixed references to InlAwis, ExtAwis, and FP<B>s. const big integer arithmetic is possible if the backing type is InlAwi and the “const_support” flag is enabled.
An arbitrary width integer with const generic bitwidth that can be stored inline on the stack like an array.

Enums

A serialization or deserialization error

Functions

Utility free function for converting a usize to a NonZeroUsize. This is mainly intended for usage with literals, and shouldn’t be used for fallible conversions.