Skip to main content

LendingIterator

Trait LendingIterator 

Source
pub trait LendingIterator {
    type Item<'a>
       where Self: 'a;

    // Required method
    fn next(&mut self) -> Option<Self::Item<'_>>;
}
Expand description

A GAT based lending iterator. Can’t do anything fancy with it yet though.

Required Associated Types§

Source

type Item<'a> where Self: 'a

Required Methods§

Source

fn next(&mut self) -> Option<Self::Item<'_>>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl LendingIterator for ObjectIterMut<'_>

Source§

type Item<'b> = (&'b mut Object, Rc<DeviceConfig>) where Self: 'b