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

Method to_pyresult

crates/stdlib/src/array.rs:592–596  ·  view source on GitHub ↗
(self, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

590
591 impl ToPyResult for WideChar {
592 fn to_pyresult(self, vm: &VirtualMachine) -> PyResult {
593 Ok(CodePoint::try_from(self)
594 .map_err(|e| vm.new_unicode_encode_error(e))?
595 .to_pyobject(vm))
596 }
597 }
598
599 impl fmt::Display for WideChar {

Callers 1

callMethod · 0.45

Calls 1

to_pyobjectMethod · 0.45

Tested by

no test coverage detected