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

Method try_to_value

crates/vm/src/convert/try_from.rs:35–40  ·  view source on GitHub ↗
(&'a self, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

33
34impl PyObject {
35 pub fn try_to_value<'a, T>(&'a self, vm: &VirtualMachine) -> PyResult<T>
36 where
37 T: 'a + TryFromBorrowedObject<'a>,
38 {
39 T::try_from_borrowed_object(vm, self)
40 }
41
42 pub fn try_to_ref<'a, T>(&'a self, vm: &VirtualMachine) -> PyResult<&'a Py<T>>
43 where

Callers 15

setstateMethod · 0.80
try_from_objectMethod · 0.80
selectFunction · 0.80
get_fd_from_file_optFunction · 0.80
fromunicodeMethod · 0.80
parse_addressFunction · 0.80
call_scan_onceMethod · 0.80
single_or_tuple_anyFunction · 0.80
offer_suggestionsFunction · 0.80
import_starMethod · 0.80
execute_unpack_exMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected