[−][src]Trait rustpython_vm::pyobject::IntoPyObject
Implemented by any type that can be returned from a built-in Python function.
IntoPyObject has a blanket implementation for any built-in object payload,
and should be implemented by many primitive Rust types, allowing a built-in
function to simply return a bool or a usize for example.
Required methods
fn into_pyobject(self, vm: &VirtualMachine) -> PyResult
Implementations on Foreign Types
impl IntoPyObject for bool[src]
fn into_pyobject(self, vm: &VirtualMachine) -> PyResult[src]
impl IntoPyObject for Vec<u8>[src]
fn into_pyobject(self, vm: &VirtualMachine) -> PyResult[src]
impl IntoPyObject for Complex64[src]
fn into_pyobject(self, vm: &VirtualMachine) -> PyResult[src]
impl IntoPyObject for f64[src]
fn into_pyobject(self, vm: &VirtualMachine) -> PyResult[src]
impl IntoPyObject for f32[src]
fn into_pyobject(self, vm: &VirtualMachine) -> PyResult[src]
impl IntoPyObject for BigInt[src]
fn into_pyobject(self, vm: &VirtualMachine) -> PyResult[src]
impl IntoPyObject for isize[src]
fn into_pyobject(self, vm: &VirtualMachine) -> PyResult[src]
impl IntoPyObject for i8[src]
fn into_pyobject(self, vm: &VirtualMachine) -> PyResult[src]
impl IntoPyObject for i16[src]
fn into_pyobject(self, vm: &VirtualMachine) -> PyResult[src]
impl IntoPyObject for i32[src]
fn into_pyobject(self, vm: &VirtualMachine) -> PyResult[src]
impl IntoPyObject for i64[src]
fn into_pyobject(self, vm: &VirtualMachine) -> PyResult[src]
impl IntoPyObject for usize[src]
fn into_pyobject(self, vm: &VirtualMachine) -> PyResult[src]
impl IntoPyObject for u8[src]
fn into_pyobject(self, vm: &VirtualMachine) -> PyResult[src]
impl IntoPyObject for u16[src]
fn into_pyobject(self, vm: &VirtualMachine) -> PyResult[src]
impl IntoPyObject for u32[src]
fn into_pyobject(self, vm: &VirtualMachine) -> PyResult[src]
impl IntoPyObject for u64[src]
fn into_pyobject(self, vm: &VirtualMachine) -> PyResult[src]
impl IntoPyObject for ()[src]
fn into_pyobject(self, vm: &VirtualMachine) -> PyResult[src]
impl<T: IntoPyObject> IntoPyObject for Option<T>[src]
fn into_pyobject(self, vm: &VirtualMachine) -> PyResult[src]
impl IntoPyObject for String[src]
fn into_pyobject(self, vm: &VirtualMachine) -> PyResult[src]
impl<'_> IntoPyObject for &'_ str[src]
fn into_pyobject(self, vm: &VirtualMachine) -> PyResult[src]
impl<'_> IntoPyObject for &'_ String[src]
fn into_pyobject(self, vm: &VirtualMachine) -> PyResult[src]
impl<A> IntoPyObject for (A,) where
A: IntoPyObject, [src]
A: IntoPyObject,
fn into_pyobject(self, vm: &VirtualMachine) -> PyResult[src]
impl<A, B> IntoPyObject for (A, B) where
A: IntoPyObject,
B: IntoPyObject, [src]
A: IntoPyObject,
B: IntoPyObject,
fn into_pyobject(self, vm: &VirtualMachine) -> PyResult[src]
impl IntoPyObject for ExitStatus[src]
fn into_pyobject(self, vm: &VirtualMachine) -> PyResult[src]
Implementors
impl IntoPyObject for PyCallable[src]
fn into_pyobject(self, _vm: &VirtualMachine) -> PyResult[src]
impl IntoPyObject for PyObjectRef[src]
fn into_pyobject(self, _vm: &VirtualMachine) -> PyResult[src]
impl<'_> IntoPyObject for &'_ PyObjectRef[src]
fn into_pyobject(self, _vm: &VirtualMachine) -> PyResult[src]
impl<T> IntoPyObject for PyRef<T>[src]
fn into_pyobject(self, _vm: &VirtualMachine) -> PyResult[src]
impl<T> IntoPyObject for PyResult<T> where
T: IntoPyObject, [src]
T: IntoPyObject,
fn into_pyobject(self, vm: &VirtualMachine) -> PyResult[src]
impl<T> IntoPyObject for T where
T: PyValue + Sized, [src]
T: PyValue + Sized,