Crates.io | size_hint |
lib.rs | size_hint |
version | 0.1.3 |
source | src |
created_at | 2019-06-06 20:49:01.188067 |
updated_at | 2019-06-08 23:17:29.905976 |
description | A very simple library to provide a size_hint for an iterator which does not provide it's own |
homepage | |
repository | https://github.com/shimunn/size_hint |
max_upload_size | |
id | 139495 |
size | 5,505 |
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}
use std::iter;
use size_hint::HintSize;
iter::successors(Some(inital_state), some_fn).hint_size(expected_items)