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

Method __len__

crates/vm/src/builtins/list.rs:249–251  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

247
248 #[allow(clippy::len_without_is_empty)]
249 pub fn __len__(&self) -> usize {
250 self.borrow_vec().len()
251 }
252
253 #[pymethod]
254 fn __sizeof__(&self) -> usize {

Callers 5

__reversed__Method · 0.45
indexMethod · 0.45
reprMethod · 0.45
__length_hint__Method · 0.45
__setstate__Method · 0.45

Calls 2

borrow_vecMethod · 0.80
lenMethod · 0.45

Tested by

no test coverage detected