Trait unchecked_index::CheckIndex [] [src]

pub trait CheckIndex<I> {
    fn assert_indexable_with(&self, index: &I);
}

Required Methods

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.

Implementors