Skip to main content

IteratorRefExt

Trait IteratorRefExt 

Source
pub trait IteratorRefExt<I: Iterator> {
    // Required method
    fn into_ref_lender(self) -> FromIterRef<I>;
}
Expand description

Extension trait adding to Iterator the method into_ref_lender, which turns an Iterator<Item = T> into a Lender with Lend<'lend> = &'lend T.

Required Methods§

Source

fn into_ref_lender(self) -> FromIterRef<I>

Turn this Iterator into a Lender that stores each element and lends a reference to it.

This method is a convenient entry point for from_iter_ref.

Implementors§