pub trait Indexed<T> {
type Element: ?Sized;
// Required method
fn get(&self, i: T) -> Option<&Self::Element>;
}
Expand description
Prelude to include needed traits Trait for indexing into an array
pub trait Indexed<T> {
type Element: ?Sized;
// Required method
fn get(&self, i: T) -> Option<&Self::Element>;
}
Prelude to include needed traits Trait for indexing into an array