pub trait CheckIndex<I> {
// Required method
fn assert_indexable_with(&self, index: &I);
}
Required Methods§
Sourcefn assert_indexable_with(&self, index: &I)
fn assert_indexable_with(&self, index: &I)
Assert (using a regular assertion) that the index is valid. Must not return if the index is invalid for indexing self.
Panics if index
is invalid.