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]
T: IntoPyObject,
fn into_object(self, py: Python) -> PyObject[src]
impl IntoPyObject for ()[src]
fn into_object(self, py: Python) -> PyObject[src]
impl<'a, T> IntoPyObject for &'a T where
T: ToPyPointer, [src]
T: ToPyPointer,
fn into_object<'p>(self, py: Python) -> PyObject[src]
impl<'a, T> IntoPyObject for &'a mut T where
T: ToPyPointer, [src]
T: ToPyPointer,
fn into_object<'p>(self, py: Python) -> PyObject[src]
impl<K, V, H> IntoPyObject for HashMap<K, V, H> where
K: Hash + Eq + ToPyObject,
V: ToPyObject,
H: BuildHasher, [src]
K: Hash + Eq + ToPyObject,
V: ToPyObject,
H: BuildHasher,
fn into_object(self, py: Python) -> PyObject[src]
impl<K, V> IntoPyObject for BTreeMap<K, V> where
K: Eq + ToPyObject,
V: ToPyObject, [src]
K: Eq + ToPyObject,
V: ToPyObject,
fn into_object(self, py: Python) -> PyObject[src]
impl IntoPyObject for bool[src]
fn into_object(self, py: Python) -> PyObject[src]
impl<A: IntoPyObject> IntoPyObject for (A,)[src]
fn into_object(self, py: Python) -> PyObject[src]
impl<A: IntoPyObject, B: IntoPyObject> IntoPyObject for (A, B)[src]
fn into_object(self, py: Python) -> PyObject[src]
impl<A: IntoPyObject, B: IntoPyObject, C: IntoPyObject> IntoPyObject for (A, B, C)[src]
fn into_object(self, py: Python) -> PyObject[src]
impl<A: IntoPyObject, B: IntoPyObject, C: IntoPyObject, D: IntoPyObject> IntoPyObject for (A, B, C, D)[src]
fn into_object(self, py: Python) -> PyObject[src]
impl<A: IntoPyObject, B: IntoPyObject, C: IntoPyObject, D: IntoPyObject, E: IntoPyObject> IntoPyObject for (A, B, C, D, E)[src]
fn into_object(self, py: Python) -> PyObject[src]
impl<A: IntoPyObject, B: IntoPyObject, C: IntoPyObject, D: IntoPyObject, E: IntoPyObject, F: IntoPyObject> IntoPyObject for (A, B, C, D, E, F)[src]
fn into_object(self, py: Python) -> PyObject[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]
fn into_object(self, py: Python) -> PyObject[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]
fn into_object(self, py: Python) -> PyObject[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]
fn into_object(self, py: Python) -> PyObject[src]
impl<T> IntoPyObject for Vec<T> where
T: IntoPyObject + ToPyObject, [src]
T: IntoPyObject + ToPyObject,