Trait pyo3::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) -> PyObjectimpl IntoPyObject for ()[src]
impl IntoPyObject for ()fn into_object(self, py: Python) -> PyObject[src]
fn into_object(self, py: Python) -> PyObjectimpl<'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) -> PyObjectimpl<'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) -> PyObjectimpl<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) -> PyObjectimpl<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) -> PyObjectimpl IntoPyObject for bool[src]
impl IntoPyObject for boolfn into_object(self, py: Python) -> PyObject[src]
fn into_object(self, py: Python) -> PyObjectimpl<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) -> PyObjectimpl<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) -> PyObjectimpl<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) -> PyObjectimpl<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) -> PyObjectimpl<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) -> PyObjectimpl<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) -> PyObjectimpl<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) -> PyObjectimpl<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) -> PyObjectimpl<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) -> PyObjectimpl<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) -> PyObjectimpl IntoPyObject for f64[src]
impl IntoPyObject for f64fn into_object(self, py: Python) -> PyObject[src]
fn into_object(self, py: Python) -> PyObjectimpl IntoPyObject for f32[src]
impl IntoPyObject for f32fn into_object(self, py: Python) -> PyObject[src]
fn into_object(self, py: Python) -> PyObjectimpl<'a> IntoPyObject for &'a str[src]
impl<'a> IntoPyObject for &'a strfn into_object(self, py: Python) -> PyObject[src]
fn into_object(self, py: Python) -> PyObjectimpl IntoPyObject for String[src]
impl IntoPyObject for Stringfn into_object(self, py: Python) -> PyObject[src]
fn into_object(self, py: Python) -> PyObjectimpl<'a> IntoPyObject for &'a String[src]
impl<'a> IntoPyObject for &'a Stringfn into_object(self, py: Python) -> PyObject[src]
fn into_object(self, py: Python) -> PyObjectimpl IntoPyObject for i8[src]
impl IntoPyObject for i8fn into_object(self, py: Python) -> PyObject[src]
fn into_object(self, py: Python) -> PyObjectimpl IntoPyObject for u8[src]
impl IntoPyObject for u8fn into_object(self, py: Python) -> PyObject[src]
fn into_object(self, py: Python) -> PyObjectimpl IntoPyObject for i16[src]
impl IntoPyObject for i16fn into_object(self, py: Python) -> PyObject[src]
fn into_object(self, py: Python) -> PyObjectimpl IntoPyObject for u16[src]
impl IntoPyObject for u16fn into_object(self, py: Python) -> PyObject[src]
fn into_object(self, py: Python) -> PyObjectimpl IntoPyObject for i32[src]
impl IntoPyObject for i32fn into_object(self, py: Python) -> PyObject[src]
fn into_object(self, py: Python) -> PyObjectimpl IntoPyObject for u32[src]
impl IntoPyObject for u32fn into_object(self, py: Python) -> PyObject[src]
fn into_object(self, py: Python) -> PyObjectimpl IntoPyObject for i64[src]
impl IntoPyObject for i64fn into_object(self, py: Python) -> PyObject[src]
fn into_object(self, py: Python) -> PyObjectimpl IntoPyObject for isize[src]
impl IntoPyObject for isizefn into_object(self, py: Python) -> PyObject[src]
fn into_object(self, py: Python) -> PyObjectimpl IntoPyObject for usize[src]
impl IntoPyObject for usizefn into_object(self, py: Python) -> PyObject[src]
fn into_object(self, py: Python) -> PyObjectimpl IntoPyObject for u64[src]
impl IntoPyObject for u64fn into_object(self, py: Python) -> PyObject[src]
fn into_object(self, py: Python) -> PyObject