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

Method step_ref

crates/vm/src/builtins/slice.rs:116–121  ·  view source on GitHub ↗
(&'a self, vm: &'a VirtualMachine)

Source from the content-addressed store, hash-verified

114 }
115
116 pub(crate) fn step_ref<'a>(&'a self, vm: &'a VirtualMachine) -> &'a PyObject {
117 match &self.step {
118 Some(v) => v,
119 None => vm.ctx.none.as_object(),
120 }
121 }
122
123 pub fn to_saturated(&self, vm: &VirtualMachine) -> PyResult<SaturatedSlice> {
124 SaturatedSlice::with_slice(self, vm)

Callers 5

with_sliceMethod · 0.80
inner_indicesMethod · 0.80
hashMethod · 0.80
cmpMethod · 0.80
repr_wtf8Method · 0.80

Calls 1

as_objectMethod · 0.45

Tested by

no test coverage detected