Trait ToPython

Source
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 ToPython<bool> for bool

Source§

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

Source§

impl ToPython<f32> for f32

Source§

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

Source§

impl ToPython<f64> for f64

Source§

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

Source§

impl ToPython<i8> for i8

Source§

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

Source§

impl ToPython<i16> for i16

Source§

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

Source§

impl ToPython<i32> for i32

Source§

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

Source§

impl ToPython<i64> for i64

Source§

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

Source§

impl ToPython<i128> for i128

Source§

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

Source§

impl ToPython<isize> for isize

Source§

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

Source§

impl ToPython<u8> for u8

Source§

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

Source§

impl ToPython<u16> for u16

Source§

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

Source§

impl ToPython<u32> for u32

Source§

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

Source§

impl ToPython<u64> for u64

Source§

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

Source§

impl ToPython<u128> for u128

Source§

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

Source§

impl ToPython<usize> for usize

Source§

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

Source§

impl ToPython<String> for String

Source§

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

Source§

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

Source§

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

Source§

impl ToPython<Py<PyAny>> for bool

Source§

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

Source§

impl ToPython<Py<PyAny>> for f32

Source§

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

Source§

impl ToPython<Py<PyAny>> for f64

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 ToPython<Py<PyAny>> for i16

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<PyAny>> for i64

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 ToPython<Py<PyAny>> for isize

Source§

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

Source§

impl ToPython<Py<PyAny>> for str

Source§

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

Source§

impl ToPython<Py<PyAny>> for u8

Source§

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

Source§

impl ToPython<Py<PyAny>> for u16

Source§

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

Source§

impl ToPython<Py<PyAny>> for u32

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 ToPython<Py<PyAny>> for u128

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 ToPython<Py<PyAny>> for String

Source§

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

Source§

impl ToPython<Py<PyAny>> for Duration

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 ToPython<Py<PyAny>> for Py<PyByteArray>

Source§

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

Source§

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

Source§

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

Source§

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

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<PyAny>> for Py<PyDateTime>

Source§

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

Source§

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

Source§

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

Source§

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

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 ToPython<Py<PyAny>> for Py<PyDict>

Source§

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

Source§

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

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 ToPython<Py<PyAny>> for Py<PyLong>

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<Py<PyAny>> for Py<PyString>

Source§

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

Source§

impl ToPython<Py<PyAny>> for Date

Source§

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

Source§

impl ToPython<Py<PyAny>> for Duration

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 ToPython<Py<PyAny>> for PrimitiveDateTime

Source§

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

Source§

impl ToPython<Py<PyAny>> for UtcOffset

Source§

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

Source§

impl ToPython<Py<PyBool>> for bool

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

impl ToPython<Py<PyDate>> for Date

Source§

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

Source§

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

Source§

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

Source§

impl ToPython<Py<PyDateTime>> for OffsetDateTime

Source§

impl ToPython<Py<PyDateTime>> for PrimitiveDateTime

Source§

impl ToPython<Py<PyDelta>> for Duration

Source§

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

Source§

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

Source§

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

Source§

impl ToPython<Py<PyDelta>> for Duration

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

impl ToPython<Py<PyTzInfo>> for UtcOffset

Source§

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

Source§

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

Source§

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

Source§

impl ToPython<Py<PyFloat>> for f32

Source§

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

Source§

impl ToPython<Py<PyFloat>> for f64

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

impl ToPython<Py<PyLong>> for i8

Source§

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

Source§

impl ToPython<Py<PyLong>> for i16

Source§

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

Source§

impl ToPython<Py<PyLong>> for i32

Source§

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

Source§

impl ToPython<Py<PyLong>> for i64

Source§

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

Source§

impl ToPython<Py<PyLong>> for i128

Source§

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

Source§

impl ToPython<Py<PyLong>> for isize

Source§

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

Source§

impl ToPython<Py<PyLong>> for u8

Source§

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

Source§

impl ToPython<Py<PyLong>> for u16

Source§

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

Source§

impl ToPython<Py<PyLong>> for u32

Source§

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

Source§

impl ToPython<Py<PyLong>> for u64

Source§

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

Source§

impl ToPython<Py<PyLong>> for u128

Source§

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

Source§

impl ToPython<Py<PyLong>> for usize

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<PySet>> for Py<PySet>

Source§

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

Source§

impl ToPython<Py<PyString>> for str

Source§

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

Source§

impl ToPython<Py<PyString>> for String

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

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<Py<PyAny>> for &'a f64

Source§

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

Source§

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

Source§

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

Source§

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

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<'a> ToPython<Py<PyAny>> for &'a i64

Source§

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

Source§

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

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<'a> ToPython<Py<PyAny>> for &'a str

Source§

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

Source§

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

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> ToPython<Py<PyAny>> for &'a u32

Source§

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

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 u128

Source§

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

Source§

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

Source§

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

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 Duration

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

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<PyAny>> for &'a Py<PyDateTime>

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<PyAny>> for &'a Py<PyTime>

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<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<PyFloat>

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

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<PyAny>> for &'a Py<PyString>

Source§

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

Source§

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

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<'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 PrimitiveDateTime

Source§

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

Source§

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

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<'a> ToPython<Py<PyBool>> for &'a Py<PyBool>

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

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<PyDate>> for &'a Date

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

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<Py<PyTime>> for &'a Py<PyTime>

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

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> ToPython<Py<PyLong>> for &'a i32

Source§

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

Source§

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

Source§

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

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<Py<PyLong>> for &'a u8

Source§

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

Source§

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

Source§

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

Source§

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

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<PyLong>> for &'a u128

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

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<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<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<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<K1, K2, V1, V2> ToPython<BTreeMap<K2, V2>> 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<K1, K2, V1, V2> ToPython<BTreeMap<K2, V2>> 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<K1, K2, V1, V2, Hasher> ToPython<HashMap<K2, V2>> 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<K1, K2, V1, V2, Hasher> ToPython<HashMap<K2, V2>> 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<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<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<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<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<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<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<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<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<T0, P0> ToPython<(P0,)> for (T0,)
where T0: ToPython<P0>, P0: ToPyObject,

Source§

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

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<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<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<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<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<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<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<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<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<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<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<T> ToPython<Py<PyAny>> for &[T]
where T: ToPython<Py<PyAny>> + Clone,

Source§

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

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<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<T> ToPython<Py<PyAny>> for [T]
where T: ToPython<Py<PyAny>> + Clone,

Source§

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

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<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<T> ToPython<Py<PyFrozenSet>> for &BTreeSet<T>
where T: ToPython<Py<PyAny>> + Clone,

Source§

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

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<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<T> ToPython<Py<PyList>> for [T]
where T: ToPython<Py<PyAny>> + Clone,

Source§

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

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<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<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<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<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<T, Hasher> ToPython<Py<PyFrozenSet>> for &HashSet<T, Hasher>
where T: ToPython<Py<PyAny>> + Clone,

Source§

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

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<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<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<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<T, P> ToPython<BTreeSet<P>> for &BTreeSet<T>
where T: ToPython<P> + Clone, P: ToPyObject + Ord + Hash,

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

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<T, P> ToPython<P> for &ArcIntern<T>
where T: ToPython<P> + ?Sized + Eq + Hash + Send + Sync + 'static, P: ToPyObject,

Source§

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

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<T, P> ToPython<P> for ArcIntern<T>
where T: ToPython<P> + ?Sized + Eq + Hash + Send + Sync + 'static, P: ToPyObject,

Source§

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

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<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>>

Implementors§