MCPcopy Create free account
hub / github.com/dgrunwald/rust-cpython / extract

Method extract

src/objects/object.rs:256–261  ·  view source on GitHub ↗
(&'a self, py: Python)

Source from the content-addressed store, hash-verified

254 /// This is a wrapper function around `FromPyObject::from_py_object()`.
255 #[inline]
256 pub fn extract<'a, T>(&'a self, py: Python) -> PyResult<T>
257 where
258 T: crate::conversion::FromPyObject<'a>,
259 {
260 crate::conversion::FromPyObject::extract(py, self)
261 }
262
263 /// True if this is None in Python.
264 #[inline]

Callers 3

test_evalFunction · 0.45
test_popFunction · 0.45
helloFunction · 0.45

Calls

no outgoing calls

Tested by 2

test_evalFunction · 0.36
test_popFunction · 0.36