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

Method __len__

crates/stdlib/src/array.rs:1097–1099  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

1095 }
1096
1097 pub(crate) fn __len__(&self) -> usize {
1098 self.read().len()
1099 }
1100
1101 fn array_eq(&self, other: &Self, vm: &VirtualMachine) -> PyResult<bool> {
1102 // we cannot use zelf.is(other) for shortcut because if we contenting a

Callers 4

indexMethod · 0.45
array_eqMethod · 0.45
repr_strMethod · 0.45
__setstate__Method · 0.45

Calls 2

lenMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected