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

Method __len__

crates/vm/src/stdlib/_collections.rs:346–348  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

344 }
345
346 fn __len__(&self) -> usize {
347 self.borrow_deque().len()
348 }
349
350 fn concat(&self, other: &PyObject, vm: &VirtualMachine) -> PyResult<Self> {
351 if let Some(o) = other.downcast_ref::<Self>() {

Callers 4

indexMethod · 0.45
reprMethod · 0.45
__length_hint__Method · 0.45
warn_if_multi_threadedFunction · 0.45

Calls 2

borrow_dequeMethod · 0.80
lenMethod · 0.45

Tested by

no test coverage detected