Feature request: add methods `wrap_array` and `peel_array` for `TransparentWrapper`
AlephAlpha opened this issue · 0 comments
AlephAlpha commented
When the feature min_const_generics
is turned on, of course.
fn wrap_array<const N: usize>(s: [Inner; N]) -> [Self; N]
where
Self: Sized,
Inner: Sized;
fn peel_array<const N: usize>(s: [Self; N]) -> [Inner; N]
where
Self: Sized,
Inner: Sized;
By the way, TransparentWrapper
can be implemented for core::cmp::Reverse
.