Crate array_of_base

Source
Expand description

An array of specified length N of u8 values from 0 to B-1

§Problem

Rust allows storing arrays on the stack of numbers, but no way to ensure that said numbers are in a specified range

§Solution

Wrapper around array that verifies all numbers when constructed

Structs§

ArrayOfBase
An array of specified length N of u8 values from 0 to B-1

Enums§

Error
Failure state for constructing crate::ArrayOfBase

Type Aliases§

ArrayOfDec
Alias for fixed length array of decimal values
ArrayOfHex
Alias for fixed length array of hexadecimal values