Expand description
Externally allocated arbitrary width integers
This crate contains storage types with external storage, ExtAwi
and Awi
,
to go along with InlAwi
in the awint_core
crate. This crate is separate
because it requires support for alloc
. Also includes FP
because it
practically requires allocation to use. This crate is intended to be used
through the main awint
crate, available with the “alloc” feature.
Modules§
- Subset of
awint::awi
- Fixed point related items
Structs§
- A reference to the bits in an
InlAwi
,ExtAwi
,Awi
, or other backing construct. If a function is written just in terms ofBits
, it can work on mixed references to any of the storage structs and wrappers likeFP<B>
.const
big integer arithmetic is possible if the backing type isInlAwi
and the “const_support” flag is enabled. - An arbitrary width integer with manually controlled bitwidth. Most arithmetic is wrapping like Rust’s integers. All reallocations are explicit.
- Fixed-Point generic struct for
B
that implementBorrow<Bits>
andBorrowMut<Bits>
. Adds on signedness and fixed-point information. Implements many traits ifB
also implements them. - Fixed-Point Type, containing signedness, bitwidth, and fixed point
- An arbitrary width integer with const generic bitwidth that can be stored inline on the stack like an array.
- A wrapper implementing total ordering
Enums§
- A serialization or deserialization error
Functions§
- Utility free function for converting a
usize
to aNonZeroUsize
. This is mainly intended for usage with literals, and shouldn’t be used for fallible conversions.