Trait pyo3::prelude::IntoPyObject [−][src]
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
fn into_object(self, py: Python) -> PyObject
Converts self into a Python object. (Consumes self)
Implementations on Foreign Types
impl<T> IntoPyObject for Option<T> where
T: IntoPyObject,
[src]
impl<T> IntoPyObject for Option<T> where
T: IntoPyObject,
fn into_object(self, py: Python) -> PyObject
[src]
fn into_object(self, py: Python) -> PyObject
impl IntoPyObject for ()
[src]
impl IntoPyObject for ()
fn into_object(self, py: Python) -> PyObject
[src]
fn into_object(self, py: Python) -> PyObject
impl<'a, T> IntoPyObject for &'a T where
T: ToPyPointer,
[src]
impl<'a, T> IntoPyObject for &'a T where
T: ToPyPointer,
fn into_object(self, py: Python) -> PyObject
[src]
fn into_object(self, py: Python) -> PyObject
impl<'a, T> IntoPyObject for &'a mut T where
T: ToPyPointer,
[src]
impl<'a, T> IntoPyObject for &'a mut T where
T: ToPyPointer,
fn into_object(self, py: Python) -> PyObject
[src]
fn into_object(self, py: Python) -> PyObject
impl<K, V, H> IntoPyObject for HashMap<K, V, H> where
K: Hash + Eq + ToPyObject,
V: ToPyObject,
H: BuildHasher,
[src]
impl<K, V, H> IntoPyObject for HashMap<K, V, H> where
K: Hash + Eq + ToPyObject,
V: ToPyObject,
H: BuildHasher,
fn into_object(self, py: Python) -> PyObject
[src]
fn into_object(self, py: Python) -> PyObject
impl<K, V> IntoPyObject for BTreeMap<K, V> where
K: Eq + ToPyObject,
V: ToPyObject,
[src]
impl<K, V> IntoPyObject for BTreeMap<K, V> where
K: Eq + ToPyObject,
V: ToPyObject,
fn into_object(self, py: Python) -> PyObject
[src]
fn into_object(self, py: Python) -> PyObject
impl IntoPyObject for bool
[src]
impl IntoPyObject for bool
fn into_object(self, py: Python) -> PyObject
[src]
fn into_object(self, py: Python) -> PyObject
impl<A: IntoPyObject> IntoPyObject for (A,)
[src]
impl<A: IntoPyObject> IntoPyObject for (A,)
fn into_object(self, py: Python) -> PyObject
[src]
fn into_object(self, py: Python) -> PyObject
impl<A: IntoPyObject, B: IntoPyObject> IntoPyObject for (A, B)
[src]
impl<A: IntoPyObject, B: IntoPyObject> IntoPyObject for (A, B)
fn into_object(self, py: Python) -> PyObject
[src]
fn into_object(self, py: Python) -> PyObject
impl<A: IntoPyObject, B: IntoPyObject, C: IntoPyObject> IntoPyObject for (A, B, C)
[src]
impl<A: IntoPyObject, B: IntoPyObject, C: IntoPyObject> IntoPyObject for (A, B, C)
fn into_object(self, py: Python) -> PyObject
[src]
fn into_object(self, py: Python) -> PyObject
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> IntoPyObject for (A, B, C, D)
fn into_object(self, py: Python) -> PyObject
[src]
fn into_object(self, py: Python) -> PyObject
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> IntoPyObject for (A, B, C, D, E)
fn into_object(self, py: Python) -> PyObject
[src]
fn into_object(self, py: Python) -> PyObject
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> IntoPyObject for (A, B, C, D, E, F)
fn into_object(self, py: Python) -> PyObject
[src]
fn into_object(self, py: Python) -> PyObject
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> IntoPyObject for (A, B, C, D, E, F, G)
fn into_object(self, py: Python) -> PyObject
[src]
fn into_object(self, py: Python) -> PyObject
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> IntoPyObject for (A, B, C, D, E, F, G, H)
fn into_object(self, py: Python) -> PyObject
[src]
fn into_object(self, py: Python) -> PyObject
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<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)
fn into_object(self, py: Python) -> PyObject
[src]
fn into_object(self, py: Python) -> PyObject
impl<T> IntoPyObject for Vec<T> where
T: IntoPyObject + ToPyObject,
[src]
impl<T> IntoPyObject for Vec<T> where
T: IntoPyObject + ToPyObject,
fn into_object(self, py: Python) -> PyObject
[src]
fn into_object(self, py: Python) -> PyObject
impl IntoPyObject for f64
[src]
impl IntoPyObject for f64
fn into_object(self, py: Python) -> PyObject
[src]
fn into_object(self, py: Python) -> PyObject
impl IntoPyObject for f32
[src]
impl IntoPyObject for f32
fn into_object(self, py: Python) -> PyObject
[src]
fn into_object(self, py: Python) -> PyObject
impl<'a> IntoPyObject for &'a str
[src]
impl<'a> IntoPyObject for &'a str
fn into_object(self, py: Python) -> PyObject
[src]
fn into_object(self, py: Python) -> PyObject
impl IntoPyObject for String
[src]
impl IntoPyObject for String
fn into_object(self, py: Python) -> PyObject
[src]
fn into_object(self, py: Python) -> PyObject
impl<'a> IntoPyObject for &'a String
[src]
impl<'a> IntoPyObject for &'a String
fn into_object(self, py: Python) -> PyObject
[src]
fn into_object(self, py: Python) -> PyObject
impl IntoPyObject for i8
[src]
impl IntoPyObject for i8
fn into_object(self, py: Python) -> PyObject
[src]
fn into_object(self, py: Python) -> PyObject
impl IntoPyObject for u8
[src]
impl IntoPyObject for u8
fn into_object(self, py: Python) -> PyObject
[src]
fn into_object(self, py: Python) -> PyObject
impl IntoPyObject for i16
[src]
impl IntoPyObject for i16
fn into_object(self, py: Python) -> PyObject
[src]
fn into_object(self, py: Python) -> PyObject
impl IntoPyObject for u16
[src]
impl IntoPyObject for u16
fn into_object(self, py: Python) -> PyObject
[src]
fn into_object(self, py: Python) -> PyObject
impl IntoPyObject for i32
[src]
impl IntoPyObject for i32
fn into_object(self, py: Python) -> PyObject
[src]
fn into_object(self, py: Python) -> PyObject
impl IntoPyObject for u32
[src]
impl IntoPyObject for u32
fn into_object(self, py: Python) -> PyObject
[src]
fn into_object(self, py: Python) -> PyObject
impl IntoPyObject for i64
[src]
impl IntoPyObject for i64
fn into_object(self, py: Python) -> PyObject
[src]
fn into_object(self, py: Python) -> PyObject
impl IntoPyObject for isize
[src]
impl IntoPyObject for isize
fn into_object(self, py: Python) -> PyObject
[src]
fn into_object(self, py: Python) -> PyObject
impl IntoPyObject for usize
[src]
impl IntoPyObject for usize
fn into_object(self, py: Python) -> PyObject
[src]
fn into_object(self, py: Python) -> PyObject
impl IntoPyObject for u64
[src]
impl IntoPyObject for u64
fn into_object(self, py: Python) -> PyObject
[src]
fn into_object(self, py: Python) -> PyObject