MCPcopy Index your code
hub / github.com/RustPython/RustPython / deserialize

Function deserialize

crates/vm/src/py_serde.rs:22–30  ·  view source on GitHub ↗
(
    vm: &'de VirtualMachine,
    deserializer: D,
)

Source from the content-addressed store, hash-verified

20
21#[inline]
22pub fn deserialize<'de, D>(
23 vm: &'de VirtualMachine,
24 deserializer: D,
25) -> Result<<PyObjectDeserializer<'de> as DeserializeSeed<'de>>::Value, D::Error>
26where
27 D: serde::Deserializer<'de>,
28{
29 PyObjectDeserializer { vm }.deserialize(deserializer)
30}
31
32// We need to have a VM available to serialize a PyObject based on its subclass, so we implement
33// PyObject serialization via a proxy object which holds a reference to a VM

Callers 1

js_to_pyFunction · 0.85

Calls 1

deserializeMethod · 0.80

Tested by

no test coverage detected