[−][src]Trait pyo3::IntoPyObject
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: AsPyPointer, [src]
T: AsPyPointer,
fn into_object(self, py: Python) -> PyObject[src]
impl<'a, T> IntoPyObject for &'a mut T where
T: AsPyPointer, [src]
T: AsPyPointer,
fn into_object(self, py: Python) -> PyObject[src]
impl IntoPyObject for bool[src]
fn into_object(self, py: Python) -> PyObject[src]
impl<K, V, H> IntoPyObject for HashMap<K, V, H> where
K: Hash + Eq + IntoPyObject,
V: IntoPyObject,
H: BuildHasher, [src]
K: Hash + Eq + IntoPyObject,
V: IntoPyObject,
H: BuildHasher,
fn into_object(self, py: Python) -> PyObject[src]
impl<K, V> IntoPyObject for BTreeMap<K, V> where
K: Eq + IntoPyObject,
V: IntoPyObject, [src]
K: Eq + IntoPyObject,
V: IntoPyObject,
fn into_object(self, py: Python) -> PyObject[src]
impl IntoPyObject for f64[src]
fn into_object(self, py: Python) -> PyObject[src]
impl IntoPyObject for f32[src]
fn into_object(self, py: Python) -> PyObject[src]
impl<T> IntoPyObject for Vec<T> where
T: IntoPyObject, [src]
T: IntoPyObject,
fn into_object(self, py: Python) -> PyObject[src]
impl IntoPyObject for i8[src]
fn into_object(self, py: Python) -> PyObject[src]
impl IntoPyObject for u8[src]
fn into_object(self, py: Python) -> PyObject[src]
impl IntoPyObject for i16[src]
fn into_object(self, py: Python) -> PyObject[src]
impl IntoPyObject for u16[src]
fn into_object(self, py: Python) -> PyObject[src]
impl IntoPyObject for i32[src]
fn into_object(self, py: Python) -> PyObject[src]
impl IntoPyObject for u32[src]
fn into_object(self, py: Python) -> PyObject[src]
impl IntoPyObject for i64[src]
fn into_object(self, py: Python) -> PyObject[src]
impl IntoPyObject for isize[src]
fn into_object(self, py: Python) -> PyObject[src]
impl IntoPyObject for usize[src]
fn into_object(self, py: Python) -> PyObject[src]
impl IntoPyObject for u64[src]
fn into_object(self, py: Python) -> PyObject[src]
impl IntoPyObject for i128[src]
fn into_object(self, py: Python) -> PyObject[src]
impl IntoPyObject for u128[src]
fn into_object(self, py: Python) -> PyObject[src]
impl<'a> IntoPyObject for &'a str[src]
fn into_object(self, py: Python) -> PyObject[src]
impl IntoPyObject for String[src]
fn into_object(self, py: Python) -> PyObject[src]
impl<'a> IntoPyObject for &'a String[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]
Implementors
impl IntoPyObject for PyErr[src]
fn into_object(self, py: Python) -> PyObject[src]
impl IntoPyObject for PyObject[src]
fn into_object(self, _py: Python) -> PyObject[src]
impl<'a> IntoPyObject for &'a PyErr[src]
fn into_object(self, py: Python) -> PyObject[src]
impl<T> IntoPyObject for Py<T>[src]
fn into_object(self, py: Python) -> PyObject[src]
Converts Py instance -> PyObject.
Consumes self without calling Py_DECREF()