[][src]Trait rustpython_vm::pyobject::IntoPyObject

pub trait IntoPyObject {
    fn into_pyobject(self, vm: &VirtualMachine) -> PyResult;
}

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

Loading content...

Implementations on Foreign Types

impl IntoPyObject for bool[src]

impl IntoPyObject for Vec<u8>[src]

impl IntoPyObject for Complex64[src]

impl IntoPyObject for f64[src]

impl IntoPyObject for f32[src]

impl IntoPyObject for BigInt[src]

impl IntoPyObject for isize[src]

impl IntoPyObject for i8[src]

impl IntoPyObject for i16[src]

impl IntoPyObject for i32[src]

impl IntoPyObject for i64[src]

impl IntoPyObject for usize[src]

impl IntoPyObject for u8[src]

impl IntoPyObject for u16[src]

impl IntoPyObject for u32[src]

impl IntoPyObject for u64[src]

impl IntoPyObject for ()[src]

impl<T: IntoPyObject> IntoPyObject for Option<T>[src]

impl IntoPyObject for String[src]

impl<'_> IntoPyObject for &'_ str[src]

impl<'_> IntoPyObject for &'_ String[src]

impl<A> IntoPyObject for (A,) where
    A: IntoPyObject
[src]

impl<A, B> IntoPyObject for (A, B) where
    A: IntoPyObject,
    B: IntoPyObject
[src]

impl IntoPyObject for ExitStatus[src]

Loading content...

Implementors

impl IntoPyObject for PyCallable[src]

impl IntoPyObject for PyObjectRef[src]

impl<'_> IntoPyObject for &'_ PyObjectRef[src]

impl<T> IntoPyObject for PyRef<T>[src]

impl<T> IntoPyObject for PyResult<T> where
    T: IntoPyObject
[src]

impl<T> IntoPyObject for T where
    T: PyValue + Sized
[src]

Loading content...