Module generic_const_mappings

Source
Expand description

Module with some const-generics-friendly definitions, to help bridge the gap between those and typenum types.

  • It requires the const-generics crate feature to be enabled.

The main type to use here is U, although Const and ToUInt may be needed in a generic context.

Structs§

Const
Used to allow the usage of U in a generic context.

Traits§

ToUInt
Used to allow the usage of U in a generic context.

Type Aliases§

U
The main mapping from a generic const: usize to a UInt: U<N> is expected to work like UN.