#generic-array

no-std hybrid-array

Hybrid typenum-based and const generic array types designed to provide the flexibility of typenum-based expressions while also allowing interoperability and a transition path to const generics

1 unstable release

0.1.0 May 7, 2022

#181 in Data structures

Download history 2/week @ 2022-12-02 2/week @ 2022-12-09 3/week @ 2022-12-16 5/week @ 2022-12-23 3/week @ 2022-12-30 3/week @ 2023-01-06 3/week @ 2023-01-13 8/week @ 2023-01-20 6/week @ 2023-01-27 2/week @ 2023-02-03 5/week @ 2023-02-10 40/week @ 2023-02-17 2/week @ 2023-02-24 9/week @ 2023-03-03 16/week @ 2023-03-10

68 downloads per month
Used in extra-safe

MIT/Apache

14KB
329 lines

RustCrypto: Hybrid Const Generic / Typenum Arrays

crate Docs Build Status Safety Dance Apache2/MIT licensed Rust Version Project Chat

Hybrid array type combining const generics with the expressiveness of typenum-based constraints, providing an alternative to generic-array and a incremental transition path to const generics.

Documentation

About

This crate uses typenum to enable the following features which aren't yet possible with the stable implementation of const generics:

Internally the crate is built on const generics and provides traits which make it possible to convert between const generic types and typenum types.

License

Licensed under either of:

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~160KB