[−][src]Trait rustpython_vm::pyobject::TryIntoRef
Allows coercion of a types into PyRefs, so that we can write functions that can take refs, pyobject refs or basic types.
Required methods
fn try_into_ref(self, vm: &VirtualMachine) -> PyResult<PyRef<T>>
Implementations on Foreign Types
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]
Implementors
impl<T> TryIntoRef<T> for PyRef<T>[src]
fn try_into_ref(self, _vm: &VirtualMachine) -> PyResult<PyRef<T>>[src]
impl<T> TryIntoRef<T> for PyObjectRef where
T: PyValue, [src]
T: PyValue,