pub trait LendingIterator {
type Item<'a>
where Self: 'a;
// Required method
fn next_ref(&mut self) -> Option<Self::Item<'_>>;
}Expand description
Basic iterator trait that allows the borrowing of inner items with mapped lifetimes.
Required Associated Types§
Required Methods§
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.