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§
Sourcefn into_lending(self) -> FromCore<Self>
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.