MCPcopy Index your code
hub / github.com/RustPython/RustPython / positive_order

Method positive_order

crates/vm/src/sliceable.rs:427–433  ·  view source on GitHub ↗
(mut self)

Source from the content-addressed store, hash-verified

425 }
426
427 pub const fn positive_order(mut self) -> Self {
428 if self.step.is_negative() {
429 self.index += self.step * self.len.saturating_sub(1) as isize;
430 self.step = self.step.saturating_abs()
431 }
432 self
433 }
434}
435
436impl Iterator for SaturatedSliceIter {

Callers 1

delitem_by_sliceMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected