Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
index
Method · 0.45
repr
Method · 0.45
__length_hint__
Method · 0.45
__setstate__
Method · 0.45
Calls
2
borrow_vec
Method · 0.80
len
Method · 0.45
Tested by
no test coverage detected