[][src]Trait size_hint::HintSize

pub trait HintSize {
    fn hint_size(self, hint: usize) -> SizeHint<Self>
    where
        Self: Sized
, { ... } }

A helper method available on all Iterators, to set size_hint which is particulary useful in combination with std::iter::from_fn or std::iter::successors in order to allow for efficent collection into Vec

Provided methods

Important traits for SizeHint<I>
fn hint_size(self, hint: usize) -> SizeHint<Self> where
    Self: Sized

Loading content...

Implementors

impl<I> HintSize for I[src]

Important traits for SizeHint<I>
fn hint_size(self, hint: usize) -> SizeHint<Self> where
    Self: Sized
[src]

Loading content...