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

Method into_py_object

src/conversion.rs:42–47  ·  view source on GitHub ↗
(self, py: Python)

Source from the content-addressed store, hash-verified

40 /// it can move out of the input object.
41 #[inline]
42 fn into_py_object(self, py: Python) -> Self::ObjectType
43 where
44 Self: Sized,
45 {
46 self.to_py_object(py)
47 }
48
49 /// Converts self into a Python object and calls the specified closure
50 /// on the native FFI pointer underlying the Python object.

Callers

nothing calls this directly

Implementers 9

conversion.rssrc/conversion.rs
dict.rssrc/objects/dict.rs
string.rssrc/objects/string.rs
num.rssrc/objects/num.rs
tuple.rssrc/objects/tuple.rs
none.rssrc/objects/none.rs
list.rssrc/objects/list.rs
set.rssrc/objects/set.rs
boolobject.rssrc/objects/boolobject.rs

Calls 1

to_py_objectMethod · 0.45

Tested by

no test coverage detected