pub trait ContainerIter<U>: Container<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§
Required Methods§
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.