Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MegEngine/MegFlow
/ __len__
Method
__len__
flow-message/src/cross/python/cow_list.rs:16–18 ·
view source on GitHub ↗
(&self)
Source
from the content-addressed store, hash-verified
14
#[pyproto]
15
impl PySequenceProtocol for PyCowList {
16
fn __len__(&self) -> usize {
17
self.as_ref().len()
18
}
19
20
fn __setitem__(&mut self, idx: isize, value: PyObject) -> PyResult<()> {
21
let gil = Python::acquire_gil();
Callers
nothing calls this directly
Calls
2
as_ref
Method · 0.80
len
Method · 0.45
Tested by
no test coverage detected