Skip to content

Latest commit

 

History

History
11 lines (8 loc) · 388 Bytes

README.md

File metadata and controls

11 lines (8 loc) · 388 Bytes

size_hint Crates.io Version

A very simple library to provide a size_hint for an iterator which does not provide it's own such as std::iter::{from_fn, successors}

Usage

use std::iter;
use size_hint::HintSize;
iter::successors(Some(inital_state), some_fn).hint_size(expected_items)