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

Method get_value_from_source

crates/vm/src/bytes_inner.rs:64–66  ·  view source on GitHub ↗
(source: PyObjectRef, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

62 }
63
64 fn get_value_from_source(source: PyObjectRef, vm: &VirtualMachine) -> PyResult<PyBytesInner> {
65 bytes_from_object(vm, &source).map(|x| x.into())
66 }
67
68 fn get_value_from_size(size: PyIntRef, vm: &VirtualMachine) -> PyResult<PyBytesInner> {
69 let size = size

Callers

nothing calls this directly

Calls 2

bytes_from_objectFunction · 0.85
mapMethod · 0.45

Tested by

no test coverage detected