#slice #const-generics #chunks #extension #traits #exacter #chunks-exact

chunks-exacter

Extension traits on slices to allow for const-generics chunks_exact

2 releases

0.1.1 Apr 30, 2021
0.1.0 Apr 30, 2021

#72 in #chunks

29 downloads per month

MIT license

5KB
96 lines

Chunks Exacter

This library is exactly like std::slice::chunks_exact, except using const generics to guarantee that the Iterator::Item is of the correct size.

This is probably some breaking stdlib change which is why its not the standard yet.

No runtime deps