ContainerIter

Trait ContainerIter 

Source
pub trait ContainerIter<U>: Container<U>
where Self::Cont<U>: RawSpace<Elem = U>,
{ type Iter<'a, T: 'a>: Iterator<Item = &'a T> where Self: 'a; // Required method fn iter(&self) -> Self::Iter<'_, U>; }
Expand description

The ContainerIter trait extends the Container trait to provide an interface for obtaining iterators over the elements of the container.

Required Associated Types§

Source

type Iter<'a, T: 'a>: Iterator<Item = &'a T> where Self: 'a

Required Methods§

Source

fn iter(&self) -> Self::Iter<'_, U>

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§