[][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

fn into_pyobject(self, vm: &VirtualMachine) -> PyResult

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> IntoPyObject for (A,)[src]

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

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

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

impl<A: IntoPyObject, B: IntoPyObject, C: IntoPyObject, D: IntoPyObject, E: IntoPyObject> IntoPyObject for (A, B, C, D, E)[src]

impl<A: IntoPyObject, B: IntoPyObject, C: IntoPyObject, D: IntoPyObject, E: IntoPyObject, F: IntoPyObject> IntoPyObject for (A, B, C, D, E, F)[src]

impl<A: IntoPyObject, B: IntoPyObject, C: IntoPyObject, D: IntoPyObject, E: IntoPyObject, F: IntoPyObject, G: IntoPyObject> IntoPyObject for (A, B, C, D, E, F, G)[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 PyArithmaticValue<T> where
    T: IntoPyObject
[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...
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy