Trait unchecked_index::CheckIndex
[−]
[src]
pub trait CheckIndex<I> { fn assert_indexable_with(&self, index: &I); }
Required Methods
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.
Implementations on Foreign Types
impl<'a, T: ?Sized, I> CheckIndex<I> for &'a T where
T: CheckIndex<I>,
[src]
T: CheckIndex<I>,
fn assert_indexable_with(&self, index: &I)
[src]
impl<'a, T: ?Sized, I> CheckIndex<I> for &'a mut T where
T: CheckIndex<I>,
[src]
T: CheckIndex<I>,