#array #serde #hexidecimal

array_of_base

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

1 unstable release

0.1.0 Dec 1, 2022

#1178 in Development tools

MIT license

21KB
199 lines

array_of_base

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

License: MIT


lib.rs:

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

Dependencies

~170KB