MCPcopy Create free account
hub / github.com/MegEngine/MegFlow / to_object

Method to_object

flow-rs/src/loader/python/port.rs:47–54  ·  view source on GitHub ↗
(&self, py: Python)

Source from the content-addressed store, hash-verified

45 }
46
47 fn to_object(&self, py: Python) -> PyResult<PyObject> {
48 self.storage
49 .values()
50 .next()
51 .cloned()
52 .map(|x| x.into_object(py))
53 .unwrap_or_else(|| T::default().into_object(py))
54 }
55
56 fn to_dict(&self, py: Python) -> PyResult<PyObject> {
57 use pyo3::types::IntoPyDict;

Callers 15

analyzeFunction · 0.80
execMethod · 0.80
analyzeFunction · 0.80
decode_videoFunction · 0.80
from_dataFunction · 0.80
__iter__Method · 0.80
__concat__Method · 0.80
__repeat__Method · 0.80
__getitem__Method · 0.80
__iter__Method · 0.80
recvMethod · 0.80
batch_recvMethod · 0.80

Calls 3

into_objectMethod · 0.80
to_listMethod · 0.80
to_dictMethod · 0.80

Tested by

no test coverage detected