rustpython_vm::pyobject::TryIntoRef - Rust
Allows coercion of a types into PyRefs, so that we can write functions that can take refs, pyobject refs or basic types.
Allows coercion of a types into PyRefs, so that we can write functions that can take refs, pyobject refs or basic types.
fn try_into_ref(self, vm: &VirtualMachine) -> PyResult<PyRef<T>>impl TryIntoRef<PyString> for String[src]fn try_into_ref(self, vm: &VirtualMachine) -> PyResult<PyRef<PyString>>[src]impl<'_> TryIntoRef<PyString> for &'_ str[src]fn try_into_ref(self, vm: &VirtualMachine) -> PyResult<PyRef<PyString>>[src]