const-size-flatten

Crates.ioconst-size-flatten
lib.rsconst-size-flatten
version0.5.0
sourcesrc
created_at2023-03-02 15:35:04.794027
updated_at2023-11-06 01:08:05.439197
descriptionFlatten and FlatMap with constant inner iterator size
homepage
repositoryhttps://github.com/schuelermine/const-size-flatten
max_upload_size
id798948
size15,513
Anselm Schüler (schuelermine)

documentation

README

Flatten and FlatMap with constant inner iterator size

This Rust package provides ConstSizeFlatten and ConstSizeFlatMap which make use of the also provided ConstSizeIntoIterator to know how many items they will yield.

Note that core & std already provide this functionality for some types through a hack using specialization. This crate’s contribution is that the trait ConstSizeIntoIterator is public and the functionality is therefore extensible.

Commit count: 18

cargo fmt