(slice: &SaturatedSlice, seq_len: usize)
| 411 | |
| 412 | impl SaturatedSliceIter { |
| 413 | pub fn new(slice: &SaturatedSlice, seq_len: usize) -> Self { |
| 414 | let (range, step, len) = slice.adjust_indices(seq_len); |
| 415 | Self::from_adjust_indices(range, step, len) |
| 416 | } |
| 417 | |
| 418 | pub const fn from_adjust_indices(range: Range<usize>, step: isize, len: usize) -> Self { |
| 419 | let index = if step.is_negative() { |
nothing calls this directly
no test coverage detected