Module typenum::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.

Structs§

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

Traits§

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

Type Aliases§

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