Trait chumsky::primitive::Container[][src]

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 linear container-like things.

This trait is likely to change in future versions of the crate, so avoid implementing it yourself.

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