pub trait ArrayTrait {
type Element;
// Required methods
fn iter<'i>(&'i self) -> Box<dyn Iterator<Item = &'i Self::Element> + 'i>;
fn len(&self) -> usize;
// Provided method
fn is_empty(&self) -> bool { ... }
}
Expand description
A trait for the minimal common functionality of a vale array