[][src]Trait pyo3::IntoPyObject

pub trait IntoPyObject {
    fn into_object(self, py: Python) -> PyObject;
}

Conversion trait that allows various objects to be converted into PyObject by consuming original object.

Required Methods

Converts self into a Python object. (Consumes self)

Implementations on Foreign Types

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

impl IntoPyObject for ()
[src]

impl<'a, T> IntoPyObject for &'a T where
    T: ToPyPointer
[src]

impl<'a, T> IntoPyObject for &'a mut T where
    T: ToPyPointer
[src]

impl IntoPyObject for bool
[src]

impl<K, V, H> IntoPyObject for HashMap<K, V, H> where
    K: Hash + Eq + ToPyObject,
    V: ToPyObject,
    H: BuildHasher
[src]

impl<K, V> IntoPyObject for BTreeMap<K, V> where
    K: Eq + ToPyObject,
    V: ToPyObject
[src]

impl IntoPyObject for f64
[src]

impl IntoPyObject for f32
[src]

impl<T> IntoPyObject for Vec<T> where
    T: IntoPyObject + ToPyObject
[src]

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

impl IntoPyObject for String
[src]

impl<'a> IntoPyObject for &'a 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<A: IntoPyObject, B: IntoPyObject, C: IntoPyObject, D: IntoPyObject, E: IntoPyObject, F: IntoPyObject, G: IntoPyObject, H: IntoPyObject> IntoPyObject for (A, B, C, D, E, F, G, H)
[src]

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

impl IntoPyObject for i8
[src]

impl IntoPyObject for u8
[src]

impl IntoPyObject for i16
[src]

impl IntoPyObject for u16
[src]

impl IntoPyObject for i32
[src]

impl IntoPyObject for u32
[src]

impl IntoPyObject for i64
[src]

impl IntoPyObject for isize
[src]

impl IntoPyObject for usize
[src]

impl IntoPyObject for u64
[src]

impl IntoPyObject for i128
[src]

impl IntoPyObject for u128
[src]

Implementors

impl IntoPyObject for NoArgs
[src]

Converts NoArgs to an empty Python tuple.

impl IntoPyObject for PyErr
[src]

impl IntoPyObject for PyObject
[src]

impl<'a> IntoPyObject for &'a PyErr
[src]

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

Converts Py instance -> PyObject. Consumes self without calling Py_DECREF()