Crate ruint

Crate ruint 

Source
Expand description

§OpenVM Uint Fork

Modules§

algorithms
⚠️ Collection of bignum algorithms.
aliases
Type aliases for common bit sizes of Uint and Bits.
support
Support for external crates.

Macros§

const_for
Compile time for loops with a const variable for testing.
uint
The uint! macro for Uint and Bits literals

Structs§

Bits
A newtype wrapper around Uint that restricts operations to those relevant for bit arrays.
Uint
The ring of numbers modulo $2^{\mathtt{BITS}}$.

Enums§

BaseConvertError
Error for from_base_le and from_base_be.
FromUintError
Error for TryFrom<Uint>.
ParseError
Error for from_str_radix.
ToFieldError
Error for TryFrom<Uint> for ark_ff and others.
ToUintError
Error for TryFrom<T> for Uint.

Traits§

UintTryFrom
⚠️ Workaround for Rust issue #50133. Use TryFrom instead.
UintTryTo
⚠️ Workaround for Rust issue #50133. Use TryFrom instead.

Functions§

mask
Mask to apply to the highest limb to get the correct number of bits.
nbytes
Number of bytes required to represent the given number of bits.
nlimbs
Number of u64 limbs required to represent the given number of bits. This needs to be public because it is used in the Uint type.