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

Method start_ref

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

Source from the content-addressed store, hash-verified

97 }
98
99 pub(crate) fn start_ref<'a>(&'a self, vm: &'a VirtualMachine) -> &'a PyObject {
100 match &self.start {
101 Some(v) => v,
102 None => vm.ctx.none.as_object(),
103 }
104 }
105
106 #[pygetset]
107 pub(crate) fn stop(&self, _vm: &VirtualMachine) -> PyObjectRef {

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