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

Method getitem_inner

crates/stdlib/src/mmap.rs:1514–1519  ·  view source on GitHub ↗
(&self, needle: &PyObject, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

1512 }
1513
1514 fn getitem_inner(&self, needle: &PyObject, vm: &VirtualMachine) -> PyResult<PyObjectRef> {
1515 match SequenceIndex::try_from_borrowed_object(vm, needle, "mmap")? {
1516 SequenceIndex::Int(i) => self.getitem_by_index(i, vm),
1517 SequenceIndex::Slice(slice) => self.getitem_by_slice(&slice, vm),
1518 }
1519 }
1520
1521 fn setitem_inner(
1522 zelf: &Py<Self>,

Callers 1

__getitem__Method · 0.45

Calls 2

getitem_by_indexMethod · 0.45
getitem_by_sliceMethod · 0.45

Tested by

no test coverage detected