pub trait Container<T>: Sealed<T> {
    type Iter: Iterator<Item = T>;

    fn get_iter(&self) -> Self::Iter;
}
Expand description

A utility trait to abstract over container-like things.

This trait is sealed and an implementation detail - its internals should not be relied on by users.

Required Associated Types§

An iterator over the items within this container, by value.

Required Methods§

Iterate over the elements of the container (using internal iteration because GATs are unstable).

Implementations on Foreign Types§

Implementors§