Trait IntoLending

Source
pub trait IntoLending: Sized {
    // Required method
    fn into_lending(self) -> FromCore<Self>;
}
Expand description

Trait for converting a normal, non-lending iterator into a lending iterator.

This is useful for methods such as Iterator::zip, where you may want to combine a standard iterator onto a lending one.

Required Methods§

Source

fn into_lending(self) -> FromCore<Self>

Convert this iterator into a lending one

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<I> IntoLending for I
where I: Iterator,