Skip to main content

IterExtension

Trait IterExtension 

Source
pub trait IterExtension<'a, Item>: 'a
where &'a Self: IntoIterator<Item = Item>,
{ // Provided method fn iter(&'a self) -> <&'a Self as IntoIterator>::IntoIter { ... } }

Provided Methods§

Source

fn iter(&'a self) -> <&'a Self as IntoIterator>::IntoIter

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, Item, T> IterExtension<'a, Item> for T
where &'a T: IntoIterator<Item = Item> + 'a,