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

Method convert

src/function.rs:183–185  ·  view source on GitHub ↗
(val: S, py: Python)

Source from the content-addressed store, hash-verified

181 type R = *mut ffi::PyObject;
182
183 fn convert(val: S, py: Python) -> *mut ffi::PyObject {
184 val.into_py_object(py).into_object().steal_ptr()
185 }
186
187 #[inline]
188 fn error_value() -> *mut ffi::PyObject {

Callers

nothing calls this directly

Calls 3

steal_ptrMethod · 0.45
into_objectMethod · 0.45
into_py_objectMethod · 0.45

Tested by

no test coverage detected