Skip to main content

checked_range

Function checked_range 

Source
pub fn checked_range(
    index: usize,
    width: usize,
    context: &str,
) -> Result<Range<usize>, WeightRangeError>
Expand description

Checked fixed-width range index * width .. start + width.