-
Notifications
You must be signed in to change notification settings - Fork 15
Closed as not planned
Description
When the const-generics feature of typenum is enabled, it provides the generic_const_mappings module which contains a Const<N> ZST with ToUInt impls automatically generated by a build script:
https://docs.rs/typenum/latest/typenum/generic_const_mappings/index.html
The typenum::U<N> type alias provides glue between the two types.
I investigated using this as e.g. an alternative to AssocArraySize in #39, but as noted in that issue it involves a viral bound:
impl <const N: usize> ...
where
...
[T; N]: AsRef<ArrayN<T, N>>
typenum::Const<N>: typenum::ToUIntwhere the current approach allows for:
impl <const N: usize> ...
where
...
[T; N]: AssocArraySize + AsRef<ArrayN<T, N>>Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels