MCPcopy Index your code
hub / github.com/davidhewitt/pythonize / pythonize_custom

Function pythonize_custom

src/ser.rs:177–183  ·  view source on GitHub ↗

Attempt to convert the given data into a Python object. Also uses custom mapping python class for serialization.

(py: Python<'py>, value: &T)

Source from the content-addressed store, hash-verified

175/// Attempt to convert the given data into a Python object.
176/// Also uses custom mapping python class for serialization.
177pub fn pythonize_custom<'py, P, T>(py: Python<'py>, value: &T) -> Result<Bound<'py, PyAny>>
178where
179 T: ?Sized + Serialize,
180 P: PythonizeTypes,
181{
182 value.serialize(Pythonizer::custom::<P>(py))
183}
184
185/// A structure that serializes Rust values into Python objects
186#[derive(Clone, Copy)]

Callers

nothing calls this directly

Calls 1

serializeMethod · 0.80

Tested by

no test coverage detected