pub trait Index {
// Required methods
fn get(&self) -> usize;
fn new(v: usize) -> Self;
}
Expand description
A type that can be cast into an index.
Note that Index
types are assumed to NOT have a significant drop.
Required Methods§
Object Safety§
This trait is not object safe.