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