Skip to content

schuelermine/const-size-flatten

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

const-size-flatten

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages