Module generic_const_mappings
Source Available on crate feature const-generics only.
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.
- Const
- Used to allow the usage of
U in a generic context.
- ToUInt
- Used to allow the usage of
U in a generic context.
- U
- The main mapping from a generic
const: usize to a UInt: U<N> is expected to work like UN.