Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ __len__
Method
__len__
crates/vm/src/builtins/dict.rs:890–892 ·
view source on GitHub ↗
(&self)
Source
from the content-addressed store, hash-verified
888
fn item(vm: &VirtualMachine, key: PyObjectRef, value: PyObjectRef) -> PyObjectRef;
889
890
fn __len__(&self) -> usize {
891
self.dict().__len__()
892
}
893
894
#[pymethod]
895
fn __reversed__(&self) -> Self::ReverseIter;
Callers
nothing calls this directly
Calls
2
__len__
Method · 0.45
dict
Method · 0.45
Tested by
no test coverage detected