pub trait ToPython<P: ToPyObject> {
    // Required method
    fn to_python(&self, py: Python<'_>) -> PyResult<P>;
}
Expand description

Convert from a Rust type into a Python type.

Required Methods§

source

fn to_python(&self, py: Python<'_>) -> PyResult<P>

Convert from Rust self into a Python type.

Errors

Any failure while converting to Python.

Implementations on Foreign Types§

source§

impl<'a, K, V> ToPython<Py<PyAny>> for &'a BTreeMap<K, V>where K: ToPython<Py<PyAny>> + Debug, V: ToPython<Py<PyAny>>,

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyAny>>

source§

impl ToPython<Py<PyAny>> for Py<PySet>

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyAny>>

source§

impl ToPython<i8> for i8

source§

fn to_python(&self, _py: Python<'_>) -> PyResult<i8>

source§

impl<'a> ToPython<i64> for &'a i64

source§

fn to_python(&self, _py: Python<'_>) -> PyResult<i64>

source§

impl ToPython<Py<PyAny>> for u8

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyAny>>

source§

impl<'a> ToPython<Py<PyTime>> for &'a Py<PyTime>

source§

fn to_python(&self, _py: Python<'_>) -> PyResult<Py<PyTime>>

source§

impl<'a> ToPython<Py<PyFloat>> for &'a Py<PyFloat>

source§

fn to_python(&self, _py: Python<'_>) -> PyResult<Py<PyFloat>>

source§

impl<T0, T1, T2, P0, P1, P2> ToPython<(P0, P1, P2)> for (T0, T1, T2)where T0: ToPython<P0>, P0: ToPyObject, T1: ToPython<P1>, P1: ToPyObject, T2: ToPython<P2>, P2: ToPyObject,

source§

impl<'a> ToPython<Py<PyAny>> for &'a u32

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyAny>>

source§

impl<'a> ToPython<u16> for &'a u16

source§

fn to_python(&self, _py: Python<'_>) -> PyResult<u16>

source§

impl<'a> ToPython<i128> for &'a i128

source§

fn to_python(&self, _py: Python<'_>) -> PyResult<i128>

source§

impl<'a, T> ToPython<Py<PyAny>> for &'a [T]where T: ToPython<Py<PyAny>> + Clone,

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyAny>>

source§

impl ToPython<Py<PyList>> for Py<PyList>

source§

fn to_python(&self, _py: Python<'_>) -> PyResult<Py<PyList>>

source§

impl ToPython<f32> for f32

source§

fn to_python(&self, _py: Python<'_>) -> PyResult<f32>

source§

impl<K, V, Hasher> ToPython<Py<PyAny>> for HashMap<K, V, Hasher>where K: ToPython<Py<PyAny>> + Debug, V: ToPython<Py<PyAny>>,

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyAny>>

source§

impl ToPython<Py<PyLong>> for i32

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyLong>>

source§

impl ToPython<Py<PyAny>> for UtcOffset

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyAny>>

source§

impl<'a, T, Hasher> ToPython<Py<PySet>> for &'a HashSet<T, Hasher>where T: ToPython<Py<PyAny>> + Clone,

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PySet>>

source§

impl<K, V, Hasher> ToPython<Py<PyDict>> for HashMap<K, V, Hasher>where K: ToPython<Py<PyAny>> + Debug, V: ToPython<Py<PyAny>>,

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyDict>>

source§

impl<'a> ToPython<Py<PyAny>> for &'a bool

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyAny>>

source§

impl<'a> ToPython<Py<PyBytes>> for &'a Vec<u8>

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyBytes>>

source§

impl ToPython<Py<PyAny>> for u32

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyAny>>

source§

impl ToPython<Py<PyDelta>> for Duration

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyDelta>>

source§

impl<T, P> ToPython<P> for Box<T>where T: ToPython<P>, P: ToPyObject,

source§

fn to_python(&self, py: Python<'_>) -> PyResult<P>

source§

impl ToPython<Py<PyDateTime>> for OffsetDateTime

source§

impl<'a> ToPython<Py<PyAny>> for &'a Date

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyAny>>

source§

impl ToPython<Py<PyAny>> for Py<PyBool>

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyAny>>

source§

impl<'a, T, P> ToPython<P> for &'a Box<T>where T: ToPython<P>, P: ToPyObject,

source§

fn to_python(&self, py: Python<'_>) -> PyResult<P>

source§

impl<'a> ToPython<Py<PyAny>> for &'a i16

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyAny>>

source§

impl ToPython<Py<PyByteArray>> for [u8]

source§

impl<'a> ToPython<Py<PyAny>> for &'a Py<PySet>

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyAny>>

source§

impl<'a> ToPython<Py<PyFloat>> for &'a f64

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyFloat>>

source§

impl<'a> ToPython<Py<PyAny>> for &'a Py<PyByteArray>

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyAny>>

source§

impl ToPython<Py<PyAny>> for usize

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyAny>>

source§

impl<'a> ToPython<Py<PyAny>> for &'a f32

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyAny>>

source§

impl<'a> ToPython<bool> for &'a bool

source§

fn to_python(&self, _py: Python<'_>) -> PyResult<bool>

source§

impl<'a> ToPython<Py<PyDate>> for &'a Py<PyDate>

source§

fn to_python(&self, _py: Python<'_>) -> PyResult<Py<PyDate>>

source§

impl<'a> ToPython<Py<PyAny>> for &'a i128

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyAny>>

source§

impl ToPython<Py<PyLong>> for u32

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyLong>>

source§

impl<T> ToPython<Py<PyAny>> for Vec<T>where T: ToPython<Py<PyAny>> + Clone,

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyAny>>

source§

impl ToPython<Py<PyLong>> for u8

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyLong>>

source§

impl ToPython<Py<PyAny>> for u128

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyAny>>

source§

impl<'a> ToPython<Py<PyBool>> for &'a bool

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyBool>>

source§

impl ToPython<Py<PyAny>> for Date

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyAny>>

source§

impl<'a> ToPython<Py<PyLong>> for &'a u8

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyLong>>

source§

impl<'a> ToPython<isize> for &'a isize

source§

fn to_python(&self, _py: Python<'_>) -> PyResult<isize>

source§

impl<'a, T> ToPython<Py<PyList>> for &'a [T]where T: ToPython<Py<PyAny>> + Clone,

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyList>>

source§

impl<'a> ToPython<Py<PyAny>> for &'a u8

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyAny>>

source§

impl<T0, T1, T2, T3, T4, T5, T6, P0, P1, P2, P3, P4, P5, P6> ToPython<(P0, P1, P2, P3, P4, P5, P6)> for (T0, T1, T2, T3, T4, T5, T6)where T0: ToPython<P0>, P0: ToPyObject, T1: ToPython<P1>, P1: ToPyObject, T2: ToPython<P2>, P2: ToPyObject, T3: ToPython<P3>, P3: ToPyObject, T4: ToPython<P4>, P4: ToPyObject, T5: ToPython<P5>, P5: ToPyObject, T6: ToPython<P6>, P6: ToPyObject,

source§

impl ToPython<Py<PyBool>> for Py<PyBool>

source§

fn to_python(&self, _py: Python<'_>) -> PyResult<Py<PyBool>>

source§

impl<'a, T> ToPython<Py<PyAny>> for &'a Vec<T>where T: ToPython<Py<PyAny>> + Clone,

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyAny>>

source§

impl ToPython<Py<PyDateTime>> for Py<PyDateTime>

source§

fn to_python(&self, _py: Python<'_>) -> PyResult<Py<PyDateTime>>

source§

impl ToPython<Py<PyTzInfo>> for UtcOffset

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyTzInfo>>

source§

impl<'a> ToPython<Py<PyAny>> for &'a Py<PyBytes>

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyAny>>

source§

impl ToPython<Py<PyAny>> for Py<PyByteArray>

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyAny>>

source§

impl<T> ToPython<Py<PyList>> for [T]where T: ToPython<Py<PyAny>> + Clone,

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyList>>

source§

impl<'a> ToPython<Py<PySet>> for &'a Py<PySet>

source§

fn to_python(&self, _py: Python<'_>) -> PyResult<Py<PySet>>

source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, P0, P1, P2, P3, P4, P5, P6, P7, P8, P9> ToPython<(P0, P1, P2, P3, P4, P5, P6, P7, P8, P9)> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9)where T0: ToPython<P0>, P0: ToPyObject, T1: ToPython<P1>, P1: ToPyObject, T2: ToPython<P2>, P2: ToPyObject, T3: ToPython<P3>, P3: ToPyObject, T4: ToPython<P4>, P4: ToPyObject, T5: ToPython<P5>, P5: ToPyObject, T6: ToPython<P6>, P6: ToPyObject, T7: ToPython<P7>, P7: ToPyObject, T8: ToPython<P8>, P8: ToPyObject, T9: ToPython<P9>, P9: ToPyObject,

source§

impl<'a> ToPython<Py<PyAny>> for &'a u64

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyAny>>

source§

impl<'a> ToPython<Py<PyAny>> for &'a i32

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyAny>>

source§

impl ToPython<Py<PyDelta>> for Py<PyDelta>

source§

fn to_python(&self, _py: Python<'_>) -> PyResult<Py<PyDelta>>

source§

impl<'a> ToPython<u64> for &'a u64

source§

fn to_python(&self, _py: Python<'_>) -> PyResult<u64>

source§

impl<'a> ToPython<Py<PyList>> for &'a Py<PyList>

source§

fn to_python(&self, _py: Python<'_>) -> PyResult<Py<PyList>>

source§

impl<'a, K, V, Hasher> ToPython<Py<PyAny>> for &'a HashMap<K, V, Hasher>where K: ToPython<Py<PyAny>> + Debug, V: ToPython<Py<PyAny>>,

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyAny>>

source§

impl<'a> ToPython<Py<PyAny>> for &'a Py<PyDateTime>

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyAny>>

source§

impl ToPython<Py<PyDict>> for Py<PyDict>

source§

fn to_python(&self, _py: Python<'_>) -> PyResult<Py<PyDict>>

source§

impl<T, P> ToPython<BTreeSet<P, Global>> for BTreeSet<T>where T: ToPython<P> + Clone, P: ToPyObject + Ord + Hash,

source§

fn to_python(&self, py: Python<'_>) -> PyResult<BTreeSet<P>>

source§

impl ToPython<Py<PyAny>> for Py<PyString>

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyAny>>

source§

impl ToPython<Py<PyAny>> for u64

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyAny>>

source§

impl<T0, T1, T2, T3, T4, T5, P0, P1, P2, P3, P4, P5> ToPython<(P0, P1, P2, P3, P4, P5)> for (T0, T1, T2, T3, T4, T5)where T0: ToPython<P0>, P0: ToPyObject, T1: ToPython<P1>, P1: ToPyObject, T2: ToPython<P2>, P2: ToPyObject, T3: ToPython<P3>, P3: ToPyObject, T4: ToPython<P4>, P4: ToPyObject, T5: ToPython<P5>, P5: ToPyObject,

source§

impl ToPython<Py<PyAny>> for f64

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyAny>>

source§

impl<'a> ToPython<Py<PyAny>> for &'a (Time, Option<UtcOffset>)

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyAny>>

source§

impl ToPython<Py<PyAny>> for Py<PyDate>

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyAny>>

source§

impl ToPython<Py<PyLong>> for u16

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyLong>>

source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10> ToPython<(P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10)> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)where T0: ToPython<P0>, P0: ToPyObject, T1: ToPython<P1>, P1: ToPyObject, T2: ToPython<P2>, P2: ToPyObject, T3: ToPython<P3>, P3: ToPyObject, T4: ToPython<P4>, P4: ToPyObject, T5: ToPython<P5>, P5: ToPyObject, T6: ToPython<P6>, P6: ToPyObject, T7: ToPython<P7>, P7: ToPyObject, T8: ToPython<P8>, P8: ToPyObject, T9: ToPython<P9>, P9: ToPyObject, T10: ToPython<P10>, P10: ToPyObject,

source§

impl<'a> ToPython<Py<PyAny>> for &'a Py<PyBool>

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyAny>>

source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11> ToPython<(P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11)> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)where T0: ToPython<P0>, P0: ToPyObject, T1: ToPython<P1>, P1: ToPyObject, T2: ToPython<P2>, P2: ToPyObject, T3: ToPython<P3>, P3: ToPyObject, T4: ToPython<P4>, P4: ToPyObject, T5: ToPython<P5>, P5: ToPyObject, T6: ToPython<P6>, P6: ToPyObject, T7: ToPython<P7>, P7: ToPyObject, T8: ToPython<P8>, P8: ToPyObject, T9: ToPython<P9>, P9: ToPyObject, T10: ToPython<P10>, P10: ToPyObject, T11: ToPython<P11>, P11: ToPyObject,

source§

impl<K1, K2, V1, V2> ToPython<BTreeMap<K2, V2, Global>> for BTreeMap<K1, V1>where K1: ToPython<K2> + Debug, V1: ToPython<V2>, K2: ToPyObject + Ord, V2: ToPyObject,

source§

fn to_python(&self, py: Python<'_>) -> PyResult<BTreeMap<K2, V2>>

source§

impl<'a> ToPython<Py<PyDateTime>> for &'a PrimitiveDateTime

source§

impl<T> ToPython<Py<PyFrozenSet>> for BTreeSet<T>where T: ToPython<Py<PyAny>> + Clone,

source§

impl ToPython<Py<PyAny>> for Py<PyComplex>

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyAny>>

source§

impl<'a> ToPython<Py<PyAny>> for &'a Duration

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyAny>>

source§

impl ToPython<Py<PyAny>> for (Time, Option<UtcOffset>)

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyAny>>

source§

impl ToPython<Py<PyFloat>> for Py<PyFloat>

source§

fn to_python(&self, _py: Python<'_>) -> PyResult<Py<PyFloat>>

source§

impl<'a, K1, K2, V1, V2> ToPython<BTreeMap<K2, V2, Global>> for &'a BTreeMap<K1, V1>where K1: ToPython<K2> + Debug, V1: ToPython<V2>, K2: ToPyObject + Ord, V2: ToPyObject,

source§

fn to_python(&self, py: Python<'_>) -> PyResult<BTreeMap<K2, V2>>

source§

impl ToPython<Py<PyLong>> for isize

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyLong>>

source§

impl<'a> ToPython<Py<PyAny>> for &'a i64

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyAny>>

source§

impl<T, P, Hasher> ToPython<HashSet<P, Hasher>> for HashSet<T, Hasher>where T: ToPython<P> + Clone, P: ToPyObject + Hash + Eq, Hasher: Default + BuildHasher,

source§

fn to_python(&self, py: Python<'_>) -> PyResult<HashSet<P, Hasher>>

source§

impl ToPython<Py<PyTime>> for (Time, Option<UtcOffset>)

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyTime>>

source§

impl<'a> ToPython<Py<PyDict>> for &'a Py<PyDict>

source§

fn to_python(&self, _py: Python<'_>) -> PyResult<Py<PyDict>>

source§

impl<'a, K1, K2, V1, V2, Hasher> ToPython<HashMap<K2, V2, RandomState>> for &'a HashMap<K1, V1, Hasher>where K1: ToPython<K2>, V1: ToPython<V2>, K2: ToPyObject + Eq + Hash, V2: ToPyObject,

source§

fn to_python(&self, py: Python<'_>) -> PyResult<HashMap<K2, V2>>

source§

impl<T, P> ToPython<Vec<P, Global>> for Vec<T>where T: ToPython<P> + Clone, P: ToPyObject,

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Vec<P>>

source§

impl<'a> ToPython<Py<PyBytes>> for &'a Py<PyBytes>

source§

fn to_python(&self, _py: Python<'_>) -> PyResult<Py<PyBytes>>

source§

impl ToPython<Py<PyAny>> for f32

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyAny>>

source§

impl<'a, T, P, Hasher> ToPython<HashSet<P, Hasher>> for &'a HashSet<T, Hasher>where T: ToPython<P> + Clone, P: ToPyObject + Hash + Eq, Hasher: Default + BuildHasher,

source§

fn to_python(&self, py: Python<'_>) -> PyResult<HashSet<P, Hasher>>

source§

impl ToPython<Py<PyAny>> for bool

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyAny>>

source§

impl<'a> ToPython<Py<PyString>> for &'a Py<PyString>

source§

fn to_python(&self, _py: Python<'_>) -> PyResult<Py<PyString>>

source§

impl ToPython<i16> for i16

source§

fn to_python(&self, _py: Python<'_>) -> PyResult<i16>

source§

impl ToPython<Py<PyAny>> for Py<PyBytes>

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyAny>>

source§

impl<'a, T, P> ToPython<Vec<P, Global>> for &'a Vec<T>where T: ToPython<P> + Clone, P: ToPyObject,

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Vec<P>>

source§

impl<'a> ToPython<Py<PyDelta>> for &'a Duration

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyDelta>>

source§

impl ToPython<u128> for u128

source§

fn to_python(&self, _py: Python<'_>) -> PyResult<u128>

source§

impl<'a> ToPython<u128> for &'a u128

source§

fn to_python(&self, _py: Python<'_>) -> PyResult<u128>

source§

impl<'a, T> ToPython<Py<PySet>> for &'a BTreeSet<T>where T: ToPython<Py<PyAny>> + Clone,

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PySet>>

source§

impl<'a> ToPython<Py<PyAny>> for &'a Py<PyLong>

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyAny>>

source§

impl<K1, K2, V1, V2, Hasher> ToPython<HashMap<K2, V2, RandomState>> for HashMap<K1, V1, Hasher>where K1: ToPython<K2>, V1: ToPython<V2>, K2: ToPyObject + Eq + Hash, V2: ToPyObject,

source§

fn to_python(&self, py: Python<'_>) -> PyResult<HashMap<K2, V2>>

source§

impl ToPython<Py<PyString>> for String

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyString>>

source§

impl ToPython<isize> for isize

source§

fn to_python(&self, _py: Python<'_>) -> PyResult<isize>

source§

impl<'a> ToPython<Py<PyAny>> for &'a Py<PyComplex>

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyAny>>

source§

impl ToPython<Py<PyAny>> for i128

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyAny>>

source§

impl<T0, T1, P0, P1> ToPython<(P0, P1)> for (T0, T1)where T0: ToPython<P0>, P0: ToPyObject, T1: ToPython<P1>, P1: ToPyObject,

source§

fn to_python(&self, py: Python<'_>) -> PyResult<(P0, P1)>

source§

impl ToPython<Py<PyBytes>> for Py<PyBytes>

source§

fn to_python(&self, _py: Python<'_>) -> PyResult<Py<PyBytes>>

source§

impl<'a> ToPython<Py<PyLong>> for &'a Py<PyLong>

source§

fn to_python(&self, _py: Python<'_>) -> PyResult<Py<PyLong>>

source§

impl ToPython<Py<PyAny>> for Duration

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyAny>>

source§

impl ToPython<Py<PyAny>> for Py<PyList>

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyAny>>

source§

impl<'a> ToPython<Py<PyBytes>> for &'a [u8]

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyBytes>>

source§

impl<T0, P0> ToPython<(P0,)> for (T0,)where T0: ToPython<P0>, P0: ToPyObject,

source§

fn to_python(&self, py: Python<'_>) -> PyResult<(P0,)>

source§

impl<'a> ToPython<Py<PyLong>> for &'a i128

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyLong>>

source§

impl<'a> ToPython<Py<PyLong>> for &'a isize

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyLong>>

source§

impl<'a> ToPython<String> for &'a String

source§

fn to_python(&self, _py: Python<'_>) -> PyResult<String>

source§

impl ToPython<Py<PyByteArray>> for Vec<u8>

source§

impl<'a, T, Hasher> ToPython<Py<PyFrozenSet>> for &'a HashSet<T, Hasher>where T: ToPython<Py<PyAny>> + Clone,

source§

impl<'a, T> ToPython<Py<PyList>> for &'a Vec<T>where T: ToPython<Py<PyAny>> + Clone,

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyList>>

source§

impl ToPython<u8> for u8

source§

fn to_python(&self, _py: Python<'_>) -> PyResult<u8>

source§

impl<'a> ToPython<Py<PyTzInfo>> for &'a UtcOffset

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyTzInfo>>

source§

impl ToPython<String> for String

source§

fn to_python(&self, _py: Python<'_>) -> PyResult<String>

source§

impl ToPython<Py<PyFloat>> for f64

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyFloat>>

source§

impl<'a> ToPython<i32> for &'a i32

source§

fn to_python(&self, _py: Python<'_>) -> PyResult<i32>

source§

impl<'a> ToPython<Py<PyDelta>> for &'a Py<PyDelta>

source§

fn to_python(&self, _py: Python<'_>) -> PyResult<Py<PyDelta>>

source§

impl ToPython<Py<PyString>> for Py<PyString>

source§

fn to_python(&self, _py: Python<'_>) -> PyResult<Py<PyString>>

source§

impl<'a> ToPython<Py<PyFloat>> for &'a f32

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyFloat>>

source§

impl<T, Hasher> ToPython<Py<PyFrozenSet>> for HashSet<T, Hasher>where T: ToPython<Py<PyAny>> + Clone,

source§

impl<'a> ToPython<Py<PyAny>> for &'a OffsetDateTime

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyAny>>

source§

impl<'a> ToPython<Py<PyAny>> for &'a u16

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyAny>>

source§

impl<'a, T> ToPython<Py<PyFrozenSet>> for &'a BTreeSet<T>where T: ToPython<Py<PyAny>> + Clone,

source§

impl<T> ToPython<Py<PySet>> for BTreeSet<T>where T: ToPython<Py<PyAny>> + Clone,

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PySet>>

source§

impl ToPython<Py<PyFloat>> for f32

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyFloat>>

source§

impl<'a> ToPython<Py<PyAny>> for &'a UtcOffset

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyAny>>

source§

impl ToPython<Py<PyAny>> for OffsetDateTime

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyAny>>

source§

impl<'a> ToPython<Py<PyAny>> for &'a str

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyAny>>

source§

impl ToPython<u64> for u64

source§

fn to_python(&self, _py: Python<'_>) -> PyResult<u64>

source§

impl<'a> ToPython<Py<PyLong>> for &'a usize

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyLong>>

source§

impl ToPython<Py<PyAny>> for str

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyAny>>

source§

impl<T, P> ToPython<Option<P>> for Option<T>where T: ToPython<P>, P: ToPyObject,

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Option<P>>

source§

impl<'a> ToPython<Py<PyAny>> for &'a Py<PyTime>

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyAny>>

source§

impl<'a> ToPython<Py<PyAny>> for &'a Py<PyString>

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyAny>>

source§

impl<'a, T, P> ToPython<Option<P>> for &'a Option<T>where T: ToPython<P>, P: ToPyObject,

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Option<P>>

source§

impl<'a, T, P> ToPython<Vec<P, Global>> for &'a [T]where T: ToPython<P> + Clone, P: ToPyObject,

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Vec<P>>

source§

impl ToPython<Py<PyDate>> for Date

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyDate>>

source§

impl ToPython<Py<PyLong>> for usize

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyLong>>

source§

impl ToPython<Py<PyAny>> for String

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyAny>>

source§

impl<'a, K, V, Hasher> ToPython<Py<PyDict>> for &'a HashMap<K, V, Hasher>where K: ToPython<Py<PyAny>> + Debug, V: ToPython<Py<PyAny>>,

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyDict>>

source§

impl ToPython<Py<PyAny>> for PrimitiveDateTime

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyAny>>

source§

impl<'a> ToPython<Py<PyLong>> for &'a u32

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyLong>>

source§

impl<'a> ToPython<Py<PyAny>> for &'a String

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyAny>>

source§

impl<'a> ToPython<Py<PyAny>> for &'a Py<PyDelta>

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyAny>>

source§

impl<'a> ToPython<Py<PyDateTime>> for &'a OffsetDateTime

source§

impl ToPython<Py<PyAny>> for isize

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyAny>>

source§

impl ToPython<Py<PyAny>> for i32

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyAny>>

source§

impl ToPython<Py<PyDateTime>> for PrimitiveDateTime

source§

impl<'a> ToPython<Py<PyString>> for &'a str

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyString>>

source§

impl<'a> ToPython<usize> for &'a usize

source§

fn to_python(&self, _py: Python<'_>) -> PyResult<usize>

source§

impl<'a> ToPython<f32> for &'a f32

source§

fn to_python(&self, _py: Python<'_>) -> PyResult<f32>

source§

impl ToPython<Py<PyAny>> for Duration

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyAny>>

source§

impl ToPython<Py<PyAny>> for Py<PyTzInfo>

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyAny>>

source§

impl<'a, K, V> ToPython<Py<PyDict>> for &'a BTreeMap<K, V>where K: ToPython<Py<PyAny>> + Debug, V: ToPython<Py<PyAny>>,

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyDict>>

source§

impl ToPython<Py<PyAny>> for Py<PyTime>

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyAny>>

source§

impl ToPython<u32> for u32

source§

fn to_python(&self, _py: Python<'_>) -> PyResult<u32>

source§

impl ToPython<Py<PyTzInfo>> for Py<PyTzInfo>

source§

fn to_python(&self, _py: Python<'_>) -> PyResult<Py<PyTzInfo>>

source§

impl<'a> ToPython<Py<PyAny>> for &'a PrimitiveDateTime

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyAny>>

source§

impl<T0, T1, T2, T3, T4, P0, P1, P2, P3, P4> ToPython<(P0, P1, P2, P3, P4)> for (T0, T1, T2, T3, T4)where T0: ToPython<P0>, P0: ToPyObject, T1: ToPython<P1>, P1: ToPyObject, T2: ToPython<P2>, P2: ToPyObject, T3: ToPython<P3>, P3: ToPyObject, T4: ToPython<P4>, P4: ToPyObject,

source§

impl<'a> ToPython<Py<PyLong>> for &'a i64

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyLong>>

source§

impl<'a> ToPython<Py<PyAny>> for &'a Py<PyDict>

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyAny>>

source§

impl<'a> ToPython<Py<PyAny>> for &'a Py<PyTzInfo>

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyAny>>

source§

impl<'a> ToPython<u32> for &'a u32

source§

fn to_python(&self, _py: Python<'_>) -> PyResult<u32>

source§

impl<F> ToPython<Py<PyComplex>> for Complex<F>where F: Copy + Float + FloatConst + Into<c_double>,

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyComplex>>

source§

impl ToPython<Py<PySet>> for Py<PySet>

source§

fn to_python(&self, _py: Python<'_>) -> PyResult<Py<PySet>>

source§

impl<K, V> ToPython<Py<PyAny>> for BTreeMap<K, V>where K: ToPython<Py<PyAny>> + Debug, V: ToPython<Py<PyAny>>,

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyAny>>

source§

impl ToPython<usize> for usize

source§

fn to_python(&self, _py: Python<'_>) -> PyResult<usize>

source§

impl<'a> ToPython<Py<PyLong>> for &'a u16

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyLong>>

source§

impl<'a> ToPython<Py<PyAny>> for &'a f64

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyAny>>

source§

impl<'a> ToPython<Py<PyAny>> for &'a isize

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyAny>>

source§

impl ToPython<Py<PyString>> for str

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyString>>

source§

impl ToPython<Py<PyBytes>> for [u8]

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyBytes>>

source§

impl<'a> ToPython<Py<PyBool>> for &'a Py<PyBool>

source§

fn to_python(&self, _py: Python<'_>) -> PyResult<Py<PyBool>>

source§

impl<'a> ToPython<f64> for &'a f64

source§

fn to_python(&self, _py: Python<'_>) -> PyResult<f64>

source§

impl<'a> ToPython<Py<PyLong>> for &'a i8

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyLong>>

source§

impl<T, P> ToPython<Vec<P, Global>> for [T]where T: ToPython<P> + Clone, P: ToPyObject,

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Vec<P>>

source§

impl ToPython<Py<PyByteArray>> for Py<PyByteArray>

source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, P0, P1, P2, P3, P4, P5, P6, P7> ToPython<(P0, P1, P2, P3, P4, P5, P6, P7)> for (T0, T1, T2, T3, T4, T5, T6, T7)where T0: ToPython<P0>, P0: ToPyObject, T1: ToPython<P1>, P1: ToPyObject, T2: ToPython<P2>, P2: ToPyObject, T3: ToPython<P3>, P3: ToPyObject, T4: ToPython<P4>, P4: ToPyObject, T5: ToPython<P5>, P5: ToPyObject, T6: ToPython<P6>, P6: ToPyObject, T7: ToPython<P7>, P7: ToPyObject,

source§

impl ToPython<Py<PyAny>> for Py<PyFloat>

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyAny>>

source§

impl ToPython<Py<PyLong>> for i8

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyLong>>

source§

impl<'a> ToPython<Py<PyLong>> for &'a u64

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyLong>>

source§

impl<'a> ToPython<Py<PyAny>> for &'a usize

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyAny>>

source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, P0, P1, P2, P3, P4, P5, P6, P7, P8> ToPython<(P0, P1, P2, P3, P4, P5, P6, P7, P8)> for (T0, T1, T2, T3, T4, T5, T6, T7, T8)where T0: ToPython<P0>, P0: ToPyObject, T1: ToPython<P1>, P1: ToPyObject, T2: ToPython<P2>, P2: ToPyObject, T3: ToPython<P3>, P3: ToPyObject, T4: ToPython<P4>, P4: ToPyObject, T5: ToPython<P5>, P5: ToPyObject, T6: ToPython<P6>, P6: ToPyObject, T7: ToPython<P7>, P7: ToPyObject, T8: ToPython<P8>, P8: ToPyObject,

source§

impl<'a, F> ToPython<Py<PyComplex>> for &'a Complex<F>where F: Copy + Float + FloatConst + Into<c_double>,

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyComplex>>

source§

impl<T> ToPython<Py<PyAny>> for [T]where T: ToPython<Py<PyAny>> + Clone,

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyAny>>

source§

impl<F> ToPython<Py<PyAny>> for Complex<F>where F: Copy + Float + FloatConst + Into<c_double>,

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyAny>>

source§

impl ToPython<bool> for bool

source§

fn to_python(&self, _py: Python<'_>) -> PyResult<bool>

source§

impl<T, Hasher> ToPython<Py<PyAny>> for HashSet<T, Hasher>where T: ToPython<Py<PyAny>> + Clone,

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyAny>>

source§

impl<'a> ToPython<Py<PyByteArray>> for &'a [u8]

source§

impl<'a> ToPython<Py<PyDate>> for &'a Date

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyDate>>

source§

impl<K, V> ToPython<Py<PyDict>> for BTreeMap<K, V>where K: ToPython<Py<PyAny>> + Debug, V: ToPython<Py<PyAny>>,

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyDict>>

source§

impl<T0, T1, T2, T3, P0, P1, P2, P3> ToPython<(P0, P1, P2, P3)> for (T0, T1, T2, T3)where T0: ToPython<P0>, P0: ToPyObject, T1: ToPython<P1>, P1: ToPyObject, T2: ToPython<P2>, P2: ToPyObject, T3: ToPython<P3>, P3: ToPyObject,

source§

impl ToPython<Py<PyAny>> for Py<PyDateTime>

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyAny>>

source§

impl ToPython<Py<PyLong>> for u128

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyLong>>

source§

impl ToPython<Py<PyLong>> for Py<PyLong>

source§

fn to_python(&self, _py: Python<'_>) -> PyResult<Py<PyLong>>

source§

impl ToPython<Py<PyAny>> for Py<PyDict>

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyAny>>

source§

impl<'a> ToPython<Py<PyLong>> for &'a u128

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyLong>>

source§

impl<'a> ToPython<Py<PyLong>> for &'a i16

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyLong>>

source§

impl<'a, T> ToPython<Py<PyAny>> for &'a BTreeSet<T>where T: ToPython<Py<PyAny>> + Clone,

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyAny>>

source§

impl<'a> ToPython<Py<PyDelta>> for &'a Duration

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyDelta>>

source§

impl<'a, F> ToPython<Py<PyAny>> for &'a Complex<F>where F: Copy + Float + FloatConst + Into<c_double>,

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyAny>>

source§

impl ToPython<f64> for f64

source§

fn to_python(&self, _py: Python<'_>) -> PyResult<f64>

source§

impl<'a> ToPython<Py<PyAny>> for &'a i8

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyAny>>

source§

impl ToPython<i64> for i64

source§

fn to_python(&self, _py: Python<'_>) -> PyResult<i64>

source§

impl ToPython<Py<PyAny>> for Py<PyLong>

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyAny>>

source§

impl ToPython<Py<PyComplex>> for Py<PyComplex>

source§

fn to_python(&self, _py: Python<'_>) -> PyResult<Py<PyComplex>>

source§

impl ToPython<Py<PyAny>> for i16

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyAny>>

source§

impl<'a, T, Hasher> ToPython<Py<PyAny>> for &'a HashSet<T, Hasher>where T: ToPython<Py<PyAny>> + Clone,

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyAny>>

source§

impl<T> ToPython<Py<PyList>> for Vec<T>where T: ToPython<Py<PyAny>> + Clone,

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyList>>

source§

impl ToPython<u16> for u16

source§

fn to_python(&self, _py: Python<'_>) -> PyResult<u16>

source§

impl<'a> ToPython<i16> for &'a i16

source§

fn to_python(&self, _py: Python<'_>) -> PyResult<i16>

source§

impl ToPython<Py<PyLong>> for i64

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyLong>>

source§

impl ToPython<Py<PyAny>> for u16

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyAny>>

source§

impl<'a> ToPython<Py<PyDateTime>> for &'a Py<PyDateTime>

source§

fn to_python(&self, _py: Python<'_>) -> PyResult<Py<PyDateTime>>

source§

impl ToPython<Py<PyBool>> for bool

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyBool>>

source§

impl ToPython<Py<PyDate>> for Py<PyDate>

source§

fn to_python(&self, _py: Python<'_>) -> PyResult<Py<PyDate>>

source§

impl<'a> ToPython<Py<PyByteArray>> for &'a Vec<u8>

source§

impl<'a> ToPython<Py<PyAny>> for &'a Py<PyList>

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyAny>>

source§

impl ToPython<Py<PyTime>> for Py<PyTime>

source§

fn to_python(&self, _py: Python<'_>) -> PyResult<Py<PyTime>>

source§

impl<'a> ToPython<Py<PyTime>> for &'a (Time, Option<UtcOffset>)

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyTime>>

source§

impl<'a> ToPython<i8> for &'a i8

source§

fn to_python(&self, _py: Python<'_>) -> PyResult<i8>

source§

impl<T> ToPython<Py<PyAny>> for BTreeSet<T>where T: ToPython<Py<PyAny>> + Clone,

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyAny>>

source§

impl ToPython<Py<PyBytes>> for Vec<u8>

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyBytes>>

source§

impl ToPython<Py<PyLong>> for i128

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyLong>>

source§

impl<T, Hasher> ToPython<Py<PySet>> for HashSet<T, Hasher>where T: ToPython<Py<PyAny>> + Clone,

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PySet>>

source§

impl<'a> ToPython<Py<PyAny>> for &'a Py<PyFloat>

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyAny>>

source§

impl<'a> ToPython<Py<PyComplex>> for &'a Py<PyComplex>

source§

fn to_python(&self, _py: Python<'_>) -> PyResult<Py<PyComplex>>

source§

impl ToPython<Py<PyAny>> for Py<PyDelta>

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyAny>>

source§

impl ToPython<Py<PyAny>> for i8

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyAny>>

source§

impl<'a, T, P> ToPython<BTreeSet<P, Global>> for &'a BTreeSet<T>where T: ToPython<P> + Clone, P: ToPyObject + Ord + Hash,

source§

fn to_python(&self, py: Python<'_>) -> PyResult<BTreeSet<P>>

source§

impl<'a> ToPython<u8> for &'a u8

source§

fn to_python(&self, _py: Python<'_>) -> PyResult<u8>

source§

impl<'a> ToPython<Py<PyAny>> for &'a u128

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyAny>>

source§

impl ToPython<Py<PyLong>> for u64

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyLong>>

source§

impl<'a> ToPython<Py<PyTzInfo>> for &'a Py<PyTzInfo>

source§

fn to_python(&self, _py: Python<'_>) -> PyResult<Py<PyTzInfo>>

source§

impl ToPython<i128> for i128

source§

fn to_python(&self, _py: Python<'_>) -> PyResult<i128>

source§

impl ToPython<Py<PyLong>> for i16

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyLong>>

source§

impl<'a> ToPython<Py<PyAny>> for &'a Duration

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyAny>>

source§

impl<'a> ToPython<Py<PyString>> for &'a String

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyString>>

source§

impl<'a> ToPython<Py<PyAny>> for &'a Py<PyDate>

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyAny>>

source§

impl<'a> ToPython<Py<PyByteArray>> for &'a Py<PyByteArray>

source§

impl<'a> ToPython<Py<PyLong>> for &'a i32

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyLong>>

source§

impl ToPython<Py<PyDelta>> for Duration

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyDelta>>

source§

impl ToPython<Py<PyAny>> for i64

source§

fn to_python(&self, py: Python<'_>) -> PyResult<Py<PyAny>>

source§

impl ToPython<i32> for i32

source§

fn to_python(&self, _py: Python<'_>) -> PyResult<i32>

Implementors§