validate_index

Function validate_index 

Source
pub fn validate_index(
    index: usize,
    max_index: usize,
    field_name: &str,
) -> Result<()>
Expand description

Validate that an index is within bounds