Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ __len__
Method
__len__
crates/vm/src/builtins/bytearray.rs:209–211 ·
view source on GitHub ↗
(&self)
Source
from the content-addressed store, hash-verified
207
}
208
209
fn __len__(&self) -> usize {
210
self.borrow_buf().len()
211
}
212
213
#[pymethod]
214
fn __sizeof__(&self) -> usize {
Callers
3
as_buffer
Method · 0.45
__length_hint__
Method · 0.45
__setstate__
Method · 0.45
Calls
2
len
Method · 0.45
borrow_buf
Method · 0.45
Tested by
no test coverage detected