LendingIterator

Trait LendingIterator 

Source
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§

Source

type Item<'a> where Self: 'a

Required Methods§

Source

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

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<'a, T: Copy> LendingIterator for Windows<'a, $n, T>
where Self: 'a,

Source§

type Item<'b> = [&'b T; 2] where Self: 'b

Source§

impl<'a, T: Copy> LendingIterator for Windows<'a, $n, T>
where Self: 'a,

Source§

type Item<'b> = [&'b T; 3] where Self: 'b

Source§

impl<'a, T: Copy> LendingIterator for Windows<'a, $n, T>
where Self: 'a,

Source§

type Item<'b> = [&'b T; 4] where Self: 'b

Source§

impl<'a, T: Copy> LendingIterator for Windows<'a, $n, T>
where Self: 'a,

Source§

type Item<'b> = [&'b T; 5] where Self: 'b

Source§

impl<'a, T: Copy> LendingIterator for Windows<'a, $n, T>
where Self: 'a,

Source§

type Item<'b> = [&'b T; 6] where Self: 'b

Source§

impl<'a, T: Copy> LendingIterator for Windows<'a, $n, T>
where Self: 'a,

Source§

type Item<'b> = [&'b T; 7] where Self: 'b

Source§

impl<'a, T: Copy> LendingIterator for Windows<'a, $n, T>
where Self: 'a,

Source§

type Item<'b> = [&'b T; 8] where Self: 'b

Source§

impl<'a, T: Copy> LendingIterator for Windows<'a, $n, T>
where Self: 'a,

Source§

type Item<'b> = [&'b T; 16] where Self: 'b

Source§

impl<'a, T: Copy> LendingIterator for Windows<'a, $n, T>
where Self: 'a,

Source§

type Item<'b> = [&'b T; 32] where Self: 'b

Source§

impl<'a, T: Copy> LendingIterator for Windows<'a, $n, T>
where Self: 'a,

Source§

type Item<'b> = [&'b T; 64] where Self: 'b

Source§

impl<const N: usize> LendingIterator for FixedU8BufIterMut<'_, N>

Source§

type Item<'b> = &'b mut u8 where Self: 'b

Source§

impl<const N: usize, T: Sized> LendingIterator for FixedBufIterMut<'_, N, T>

Source§

type Item<'b> = &'b mut T where Self: 'b