VecVecExt

Trait VecVecExt 

Source
pub trait VecVecExt {
    type Item;

    // Required methods
    fn popping_iter(&mut self) -> PoppingIter<'_, Self::Item> ;
    fn lending_iter_mut(&mut self) -> LendingIterMut<'_, Self::Item>;
    fn lending_iter(&self) -> LendingIter<'_, Self::Item>;
    fn trivial_last_entry(&mut self) -> Option<TrivialLastEntry<'_, Self::Item>>;
}
Expand description

An extension trait for Vec<Vec<T>>.

Required Associated Types§

Source

type Item

The type T of the items contained in the Vec<Vec<T>>.

Required Methods§

Source

fn popping_iter(&mut self) -> PoppingIter<'_, Self::Item>

Returns a PoppingIter over the Vec<Vec<T>>.

Source

fn lending_iter_mut(&mut self) -> LendingIterMut<'_, Self::Item>

Returns a lending iterator over the mutable references to the elements of Vec<Vec<T>>.

Source

fn lending_iter(&self) -> LendingIter<'_, Self::Item>

Returns a [lending iterator] over the shared references to the elements of Vec<Vec<T>>.

Source

fn trivial_last_entry(&mut self) -> Option<TrivialLastEntry<'_, Self::Item>>

Implementations on Foreign Types§

Source§

impl<T> VecVecExt for Vec<Vec<T>>

Source§

type Item = T

Source§

fn popping_iter(&mut self) -> PoppingIter<'_, Self::Item>

Source§

fn lending_iter_mut(&mut self) -> LendingIterMut<'_, Self::Item>

Source§

fn lending_iter(&self) -> LendingIter<'_, Self::Item>

Source§

fn trivial_last_entry(&mut self) -> Option<TrivialLastEntry<'_, Self::Item>>

Implementors§