◐ Shell
clean mode source ↗

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.

Required methods

fn try_into_ref(self, vm: &VirtualMachine) -> PyResult<PyRef<T>>

Loading content...

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]

Loading content...

Implementors

Loading content...