const-size-flatten 0.5.0

Flatten and FlatMap with constant inner iterator size
Documentation
1
2
3
4
5
# `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.