Skip to main content

check_index

Function check_index 

Source
pub fn check_index(index: usize, len: usize) -> Result<()>
Expand description

Assert that index < len, returning Err(Error::IndexOutOfBounds) if not.