estimate_size 0.1.2

Replaces an iterator's `size_hint` with a custom value.
Documentation
  • Coverage
  • 28.57%
    2 out of 7 items documented0 out of 6 items with examples
  • Size
  • Source code size: 22.41 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 477.37 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 6s Average build duration of successful builds.
  • all releases: 8s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • menon-codes

estimate_size Crates.io Version

A library used on iterators which allows adapting a custom size_hint with your estimate, for iterators that do not provide accurate estimates themselves.

Usage

use estimate_size::EstimateSize;
(0..10).filter(|x| x % 2 == 0).estimate_exact_size(5)