pub trait Sequence {
    type Item;

    fn len(&self) -> usize;
    fn is_empty(&self) -> bool;
    fn get(&self, idx: usize) -> Option<Self::Item>;
}
Expand description

An indexable collection of a finite number of items.

Required Associated Types

Required Methods

The number of items in the sequences.

Check if len() == 0

Get an item if and only if 0 <= idx < len().

Implementations on Foreign Types

Implementors