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.
pub trait Sequence {
type Item;
fn len(&self) -> usize;
fn is_empty(&self) -> bool;
fn get(&self, idx: usize) -> Option<Self::Item>;
}
An indexable collection of a finite number of items.