pub trait IntoPyObject<'py>: Sized {
type Target;
type Output: BoundObject<'py, Self::Target>;
type Error: Into<PyErr>;
const OUTPUT_TYPE: PyStaticExpr = _;
#[doc(hidden)] const SEQUENCE_OUTPUT_TYPE: PyStaticExpr = _;
// Required method
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>;
// Provided methods
#[doc(hidden)] fn owned_sequence_into_pyobject<I>(
iter: I,
py: Python<'py>,
_: Token,
) -> Result<Bound<'py, PyAny>, PyErr>
where I: IntoIterator<Item = Self> + AsRef<[Self]>,
I::IntoIter: ExactSizeIterator<Item = Self> { ... }
#[doc(hidden)] fn borrowed_sequence_into_pyobject<I>(
iter: I,
py: Python<'py>,
_: Token,
) -> Result<Bound<'py, PyAny>, PyErr>
where Self: Reference,
I: IntoIterator<Item = Self> + AsRef<[<Self as Reference>::BaseType]>,
I::IntoIter: ExactSizeIterator<Item = Self> { ... }
}Expand description
Defines a conversion from a Rust type to a Python object, which may fail.
This trait has #[derive(IntoPyObject)] to automatically implement it for simple types and
#[derive(IntoPyObjectRef)] to implement the same for references.
It functions similarly to std’s TryInto trait, but requires a Python<'py> token
as an argument.
The into_pyobject method is designed for maximum flexibility and efficiency; it
- allows for a concrete Python type to be returned (the
Targetassociated type) - allows for the smart pointer containing the Python object to be either
Bound<'py, Self::Target>orBorrowed<'a, 'py, Self::Target>to avoid unnecessary reference counting overhead - allows for a custom error type to be returned in the event of a conversion error to avoid unnecessarily creating a Python exception
§See also
- The
IntoPyObjectExttrait, which provides convenience methods for common usages ofIntoPyObjectwhich erase type information and convert errors toPyErr.
Provided Associated Constants§
Sourceconst OUTPUT_TYPE: PyStaticExpr = _
Available on crate feature experimental-inspect only.
const OUTPUT_TYPE: PyStaticExpr = _
experimental-inspect only.Extracts the type hint information for this type when it appears as a return value.
For example, Vec<u32> would return List[int].
The default implementation returns Any, which is correct for any type.
For most types, the return value for this method will be identical to that of FromPyObject::INPUT_TYPE.
It may be different for some types, such as Dict, to allow duck-typing: functions return Dict but take Mapping as argument.
Source#[doc(hidden)]const SEQUENCE_OUTPUT_TYPE: PyStaticExpr = _
Available on crate feature experimental-inspect only.
#[doc(hidden)]const SEQUENCE_OUTPUT_TYPE: PyStaticExpr = _
experimental-inspect only.The output type of IntoPyObject::owned_sequence_into_pyobject and IntoPyObject::borrowed_sequence_into_pyobject
Required Associated Types§
Sourcetype Output: BoundObject<'py, Self::Target>
type Output: BoundObject<'py, Self::Target>
The smart pointer type to use.
This will usually be Bound<'py, Target>, but in special cases Borrowed<'a, 'py, Target> can be
used to minimize reference counting overhead.
Required Methods§
Provided Methods§
Source#[doc(hidden)]fn owned_sequence_into_pyobject<I>(
iter: I,
py: Python<'py>,
_: Token,
) -> Result<Bound<'py, PyAny>, PyErr>
#[doc(hidden)]fn owned_sequence_into_pyobject<I>(
iter: I,
py: Python<'py>,
_: Token,
) -> Result<Bound<'py, PyAny>, PyErr>
Converts sequence of Self into a Python object. Used to specialize Vec<u8>, [u8; N]
and SmallVec<[u8; N]> as a sequence of bytes into a bytes object.
Source#[doc(hidden)]fn borrowed_sequence_into_pyobject<I>(
iter: I,
py: Python<'py>,
_: Token,
) -> Result<Bound<'py, PyAny>, PyErr>where
Self: Reference,
I: IntoIterator<Item = Self> + AsRef<[<Self as Reference>::BaseType]>,
I::IntoIter: ExactSizeIterator<Item = Self>,
#[doc(hidden)]fn borrowed_sequence_into_pyobject<I>(
iter: I,
py: Python<'py>,
_: Token,
) -> Result<Bound<'py, PyAny>, PyErr>where
Self: Reference,
I: IntoIterator<Item = Self> + AsRef<[<Self as Reference>::BaseType]>,
I::IntoIter: ExactSizeIterator<Item = Self>,
Converts sequence of Self into a Python object. Used to specialize &[u8] and Cow<[u8]>
as a sequence of bytes into a bytes object.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementations on Foreign Types§
Source§impl<'a, 'py, A> IntoPyObject<'py> for &'a SmallVec<A>where
A: Array,
&'a A::Item: IntoPyObject<'py>,
Available on crate feature smallvec only.
impl<'a, 'py, A> IntoPyObject<'py> for &'a SmallVec<A>where
A: Array,
&'a A::Item: IntoPyObject<'py>,
smallvec only.Source§const OUTPUT_TYPE: PyStaticExpr = <&[A::Item]>::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = <&[A::Item]>::OUTPUT_TYPE
experimental-inspect only.type Target = PyAny
type Output = Bound<'py, <&'a SmallVec<A> as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'a, 'py, K> IntoPyObject<'py> for &'a BTreeSet<K>
impl<'a, 'py, K> IntoPyObject<'py> for &'a BTreeSet<K>
Source§const OUTPUT_TYPE: PyStaticExpr
const OUTPUT_TYPE: PyStaticExpr
experimental-inspect only.type Target = PySet
type Output = Bound<'py, <&'a BTreeSet<K> as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'a, 'py, K, H> IntoPyObject<'py> for &'a HashSet<K, H>
impl<'a, 'py, K, H> IntoPyObject<'py> for &'a HashSet<K, H>
Source§const OUTPUT_TYPE: PyStaticExpr
const OUTPUT_TYPE: PyStaticExpr
experimental-inspect only.type Target = PySet
type Output = Bound<'py, <&'a HashSet<K, H> as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'a, 'py, K, H> IntoPyObject<'py> for &'a HashSet<K, H>
Available on crate feature hashbrown only.
impl<'a, 'py, K, H> IntoPyObject<'py> for &'a HashSet<K, H>
hashbrown only.Source§const OUTPUT_TYPE: PyStaticExpr
const OUTPUT_TYPE: PyStaticExpr
experimental-inspect only.type Target = PySet
type Output = Bound<'py, <&'a HashSet<K, H> as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'a, 'py, K, V> IntoPyObject<'py> for &'a BTreeMap<K, V>
impl<'a, 'py, K, V> IntoPyObject<'py> for &'a BTreeMap<K, V>
Source§const OUTPUT_TYPE: PyStaticExpr
const OUTPUT_TYPE: PyStaticExpr
experimental-inspect only.type Target = PyDict
type Output = Bound<'py, <&'a BTreeMap<K, V> as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'a, 'py, K, V, H> IntoPyObject<'py> for &'a HashMap<K, V, H>
impl<'a, 'py, K, V, H> IntoPyObject<'py> for &'a HashMap<K, V, H>
Source§const OUTPUT_TYPE: PyStaticExpr
const OUTPUT_TYPE: PyStaticExpr
experimental-inspect only.type Target = PyDict
type Output = Bound<'py, <&'a HashMap<K, V, H> as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'a, 'py, K, V, H> IntoPyObject<'py> for &'a HashMap<K, V, H>
Available on crate feature hashbrown only.
impl<'a, 'py, K, V, H> IntoPyObject<'py> for &'a HashMap<K, V, H>
hashbrown only.Source§const OUTPUT_TYPE: PyStaticExpr
const OUTPUT_TYPE: PyStaticExpr
experimental-inspect only.type Target = PyDict
type Output = Bound<'py, <&'a HashMap<K, V, H> as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'a, 'py, K, V, H> IntoPyObject<'py> for &'a IndexMap<K, V, H>
Available on crate feature indexmap only.
impl<'a, 'py, K, V, H> IntoPyObject<'py> for &'a IndexMap<K, V, H>
indexmap only.Source§const OUTPUT_TYPE: PyStaticExpr
const OUTPUT_TYPE: PyStaticExpr
experimental-inspect only.type Target = PyDict
type Output = Bound<'py, <&'a IndexMap<K, V, H> as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'a, 'py, L, R> IntoPyObject<'py> for &'a Either<L, R>
Available on crate feature either only.
impl<'a, 'py, L, R> IntoPyObject<'py> for &'a Either<L, R>
either only.Source§const OUTPUT_TYPE: PyStaticExpr
const OUTPUT_TYPE: PyStaticExpr
experimental-inspect only.type Target = PyAny
type Output = Bound<'py, <&'a Either<L, R> as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'a, 'py, T0> IntoPyObject<'py> for &'a (T0,)where
&'a T0: IntoPyObject<'py>,
impl<'a, 'py, T0> IntoPyObject<'py> for &'a (T0,)where
&'a T0: IntoPyObject<'py>,
Source§const OUTPUT_TYPE: PyStaticExpr
const OUTPUT_TYPE: PyStaticExpr
experimental-inspect only.type Target = PyTuple
type Output = Bound<'py, <&'a (T0,) as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'a, 'py, T0, T1> IntoPyObject<'py> for &'a (T0, T1)
impl<'a, 'py, T0, T1> IntoPyObject<'py> for &'a (T0, T1)
Source§const OUTPUT_TYPE: PyStaticExpr
const OUTPUT_TYPE: PyStaticExpr
experimental-inspect only.type Target = PyTuple
type Output = Bound<'py, <&'a (T0, T1) as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'a, 'py, T0, T1, T2> IntoPyObject<'py> for &'a (T0, T1, T2)
impl<'a, 'py, T0, T1, T2> IntoPyObject<'py> for &'a (T0, T1, T2)
Source§const OUTPUT_TYPE: PyStaticExpr
const OUTPUT_TYPE: PyStaticExpr
experimental-inspect only.type Target = PyTuple
type Output = Bound<'py, <&'a (T0, T1, T2) as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'a, 'py, T0, T1, T2, T3> IntoPyObject<'py> for &'a (T0, T1, T2, T3)where
&'a T0: IntoPyObject<'py>,
&'a T1: IntoPyObject<'py>,
&'a T2: IntoPyObject<'py>,
&'a T3: IntoPyObject<'py>,
impl<'a, 'py, T0, T1, T2, T3> IntoPyObject<'py> for &'a (T0, T1, T2, T3)where
&'a T0: IntoPyObject<'py>,
&'a T1: IntoPyObject<'py>,
&'a T2: IntoPyObject<'py>,
&'a T3: IntoPyObject<'py>,
Source§const OUTPUT_TYPE: PyStaticExpr
const OUTPUT_TYPE: PyStaticExpr
experimental-inspect only.type Target = PyTuple
type Output = Bound<'py, <&'a (T0, T1, T2, T3) as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'a, 'py, T0, T1, T2, T3, T4> IntoPyObject<'py> for &'a (T0, T1, T2, T3, T4)where
&'a T0: IntoPyObject<'py>,
&'a T1: IntoPyObject<'py>,
&'a T2: IntoPyObject<'py>,
&'a T3: IntoPyObject<'py>,
&'a T4: IntoPyObject<'py>,
impl<'a, 'py, T0, T1, T2, T3, T4> IntoPyObject<'py> for &'a (T0, T1, T2, T3, T4)where
&'a T0: IntoPyObject<'py>,
&'a T1: IntoPyObject<'py>,
&'a T2: IntoPyObject<'py>,
&'a T3: IntoPyObject<'py>,
&'a T4: IntoPyObject<'py>,
Source§const OUTPUT_TYPE: PyStaticExpr
const OUTPUT_TYPE: PyStaticExpr
experimental-inspect only.type Target = PyTuple
type Output = Bound<'py, <&'a (T0, T1, T2, T3, T4) as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'a, 'py, T0, T1, T2, T3, T4, T5> IntoPyObject<'py> for &'a (T0, T1, T2, T3, T4, T5)where
&'a T0: IntoPyObject<'py>,
&'a T1: IntoPyObject<'py>,
&'a T2: IntoPyObject<'py>,
&'a T3: IntoPyObject<'py>,
&'a T4: IntoPyObject<'py>,
&'a T5: IntoPyObject<'py>,
impl<'a, 'py, T0, T1, T2, T3, T4, T5> IntoPyObject<'py> for &'a (T0, T1, T2, T3, T4, T5)where
&'a T0: IntoPyObject<'py>,
&'a T1: IntoPyObject<'py>,
&'a T2: IntoPyObject<'py>,
&'a T3: IntoPyObject<'py>,
&'a T4: IntoPyObject<'py>,
&'a T5: IntoPyObject<'py>,
Source§const OUTPUT_TYPE: PyStaticExpr
const OUTPUT_TYPE: PyStaticExpr
experimental-inspect only.type Target = PyTuple
type Output = Bound<'py, <&'a (T0, T1, T2, T3, T4, T5) as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'a, 'py, T0, T1, T2, T3, T4, T5, T6> IntoPyObject<'py> for &'a (T0, T1, T2, T3, T4, T5, T6)where
&'a T0: IntoPyObject<'py>,
&'a T1: IntoPyObject<'py>,
&'a T2: IntoPyObject<'py>,
&'a T3: IntoPyObject<'py>,
&'a T4: IntoPyObject<'py>,
&'a T5: IntoPyObject<'py>,
&'a T6: IntoPyObject<'py>,
impl<'a, 'py, T0, T1, T2, T3, T4, T5, T6> IntoPyObject<'py> for &'a (T0, T1, T2, T3, T4, T5, T6)where
&'a T0: IntoPyObject<'py>,
&'a T1: IntoPyObject<'py>,
&'a T2: IntoPyObject<'py>,
&'a T3: IntoPyObject<'py>,
&'a T4: IntoPyObject<'py>,
&'a T5: IntoPyObject<'py>,
&'a T6: IntoPyObject<'py>,
Source§const OUTPUT_TYPE: PyStaticExpr
const OUTPUT_TYPE: PyStaticExpr
experimental-inspect only.type Target = PyTuple
type Output = Bound<'py, <&'a (T0, T1, T2, T3, T4, T5, T6) as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'a, 'py, T0, T1, T2, T3, T4, T5, T6, T7> IntoPyObject<'py> for &'a (T0, T1, T2, T3, T4, T5, T6, T7)where
&'a T0: IntoPyObject<'py>,
&'a T1: IntoPyObject<'py>,
&'a T2: IntoPyObject<'py>,
&'a T3: IntoPyObject<'py>,
&'a T4: IntoPyObject<'py>,
&'a T5: IntoPyObject<'py>,
&'a T6: IntoPyObject<'py>,
&'a T7: IntoPyObject<'py>,
impl<'a, 'py, T0, T1, T2, T3, T4, T5, T6, T7> IntoPyObject<'py> for &'a (T0, T1, T2, T3, T4, T5, T6, T7)where
&'a T0: IntoPyObject<'py>,
&'a T1: IntoPyObject<'py>,
&'a T2: IntoPyObject<'py>,
&'a T3: IntoPyObject<'py>,
&'a T4: IntoPyObject<'py>,
&'a T5: IntoPyObject<'py>,
&'a T6: IntoPyObject<'py>,
&'a T7: IntoPyObject<'py>,
Source§const OUTPUT_TYPE: PyStaticExpr
const OUTPUT_TYPE: PyStaticExpr
experimental-inspect only.type Target = PyTuple
type Output = Bound<'py, <&'a (T0, T1, T2, T3, T4, T5, T6, T7) as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'a, 'py, T0, T1, T2, T3, T4, T5, T6, T7, T8> IntoPyObject<'py> for &'a (T0, T1, T2, T3, T4, T5, T6, T7, T8)where
&'a T0: IntoPyObject<'py>,
&'a T1: IntoPyObject<'py>,
&'a T2: IntoPyObject<'py>,
&'a T3: IntoPyObject<'py>,
&'a T4: IntoPyObject<'py>,
&'a T5: IntoPyObject<'py>,
&'a T6: IntoPyObject<'py>,
&'a T7: IntoPyObject<'py>,
&'a T8: IntoPyObject<'py>,
impl<'a, 'py, T0, T1, T2, T3, T4, T5, T6, T7, T8> IntoPyObject<'py> for &'a (T0, T1, T2, T3, T4, T5, T6, T7, T8)where
&'a T0: IntoPyObject<'py>,
&'a T1: IntoPyObject<'py>,
&'a T2: IntoPyObject<'py>,
&'a T3: IntoPyObject<'py>,
&'a T4: IntoPyObject<'py>,
&'a T5: IntoPyObject<'py>,
&'a T6: IntoPyObject<'py>,
&'a T7: IntoPyObject<'py>,
&'a T8: IntoPyObject<'py>,
Source§const OUTPUT_TYPE: PyStaticExpr
const OUTPUT_TYPE: PyStaticExpr
experimental-inspect only.type Target = PyTuple
type Output = Bound<'py, <&'a (T0, T1, T2, T3, T4, T5, T6, T7, T8) as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'a, 'py, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9> IntoPyObject<'py> for &'a (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9)where
&'a T0: IntoPyObject<'py>,
&'a T1: IntoPyObject<'py>,
&'a T2: IntoPyObject<'py>,
&'a T3: IntoPyObject<'py>,
&'a T4: IntoPyObject<'py>,
&'a T5: IntoPyObject<'py>,
&'a T6: IntoPyObject<'py>,
&'a T7: IntoPyObject<'py>,
&'a T8: IntoPyObject<'py>,
&'a T9: IntoPyObject<'py>,
impl<'a, 'py, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9> IntoPyObject<'py> for &'a (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9)where
&'a T0: IntoPyObject<'py>,
&'a T1: IntoPyObject<'py>,
&'a T2: IntoPyObject<'py>,
&'a T3: IntoPyObject<'py>,
&'a T4: IntoPyObject<'py>,
&'a T5: IntoPyObject<'py>,
&'a T6: IntoPyObject<'py>,
&'a T7: IntoPyObject<'py>,
&'a T8: IntoPyObject<'py>,
&'a T9: IntoPyObject<'py>,
Source§const OUTPUT_TYPE: PyStaticExpr
const OUTPUT_TYPE: PyStaticExpr
experimental-inspect only.type Target = PyTuple
type Output = Bound<'py, <&'a (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9) as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'a, 'py, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> IntoPyObject<'py> for &'a (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)where
&'a T0: IntoPyObject<'py>,
&'a T1: IntoPyObject<'py>,
&'a T2: IntoPyObject<'py>,
&'a T3: IntoPyObject<'py>,
&'a T4: IntoPyObject<'py>,
&'a T5: IntoPyObject<'py>,
&'a T6: IntoPyObject<'py>,
&'a T7: IntoPyObject<'py>,
&'a T8: IntoPyObject<'py>,
&'a T9: IntoPyObject<'py>,
&'a T10: IntoPyObject<'py>,
impl<'a, 'py, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> IntoPyObject<'py> for &'a (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)where
&'a T0: IntoPyObject<'py>,
&'a T1: IntoPyObject<'py>,
&'a T2: IntoPyObject<'py>,
&'a T3: IntoPyObject<'py>,
&'a T4: IntoPyObject<'py>,
&'a T5: IntoPyObject<'py>,
&'a T6: IntoPyObject<'py>,
&'a T7: IntoPyObject<'py>,
&'a T8: IntoPyObject<'py>,
&'a T9: IntoPyObject<'py>,
&'a T10: IntoPyObject<'py>,
Source§const OUTPUT_TYPE: PyStaticExpr
const OUTPUT_TYPE: PyStaticExpr
experimental-inspect only.type Target = PyTuple
type Output = Bound<'py, <&'a (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10) as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'a, 'py, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> IntoPyObject<'py> for &'a (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)where
&'a T0: IntoPyObject<'py>,
&'a T1: IntoPyObject<'py>,
&'a T2: IntoPyObject<'py>,
&'a T3: IntoPyObject<'py>,
&'a T4: IntoPyObject<'py>,
&'a T5: IntoPyObject<'py>,
&'a T6: IntoPyObject<'py>,
&'a T7: IntoPyObject<'py>,
&'a T8: IntoPyObject<'py>,
&'a T9: IntoPyObject<'py>,
&'a T10: IntoPyObject<'py>,
&'a T11: IntoPyObject<'py>,
impl<'a, 'py, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> IntoPyObject<'py> for &'a (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)where
&'a T0: IntoPyObject<'py>,
&'a T1: IntoPyObject<'py>,
&'a T2: IntoPyObject<'py>,
&'a T3: IntoPyObject<'py>,
&'a T4: IntoPyObject<'py>,
&'a T5: IntoPyObject<'py>,
&'a T6: IntoPyObject<'py>,
&'a T7: IntoPyObject<'py>,
&'a T8: IntoPyObject<'py>,
&'a T9: IntoPyObject<'py>,
&'a T10: IntoPyObject<'py>,
&'a T11: IntoPyObject<'py>,
Source§const OUTPUT_TYPE: PyStaticExpr
const OUTPUT_TYPE: PyStaticExpr
experimental-inspect only.type Target = PyTuple
type Output = Bound<'py, <&'a (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11) as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'a, 'py, T> IntoPyObject<'py> for &'a Option<T>where
&'a T: IntoPyObject<'py>,
impl<'a, 'py, T> IntoPyObject<'py> for &'a Option<T>where
&'a T: IntoPyObject<'py>,
Source§const OUTPUT_TYPE: PyStaticExpr = Option<&T>::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = Option<&T>::OUTPUT_TYPE
experimental-inspect only.type Target = PyAny
type Output = Bound<'py, <&'a Option<T> as IntoPyObject<'py>>::Target>
type Error = <&'a T as IntoPyObject<'py>>::Error
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'a, 'py, T> IntoPyObject<'py> for &'a [T]where
&'a T: IntoPyObject<'py>,
impl<'a, 'py, T> IntoPyObject<'py> for &'a [T]where
&'a T: IntoPyObject<'py>,
Source§const OUTPUT_TYPE: PyStaticExpr = <&T>::SEQUENCE_OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = <&T>::SEQUENCE_OUTPUT_TYPE
experimental-inspect only.type Target = PyAny
type Output = Bound<'py, <&'a [T] as IntoPyObject<'py>>::Target>
type Error = PyErr
Source§impl<'a, 'py, T> IntoPyObject<'py> for &'a Vec<T>where
&'a T: IntoPyObject<'py>,
impl<'a, 'py, T> IntoPyObject<'py> for &'a Vec<T>where
&'a T: IntoPyObject<'py>,
Source§const OUTPUT_TYPE: PyStaticExpr = <&[T]>::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = <&[T]>::OUTPUT_TYPE
experimental-inspect only.type Target = PyAny
type Output = Bound<'py, <&'a Vec<T> as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'a, 'py, T> IntoPyObject<'py> for &&'a Twhere
&'a T: IntoPyObject<'py>,
impl<'a, 'py, T> IntoPyObject<'py> for &&'a Twhere
&'a T: IntoPyObject<'py>,
Source§const OUTPUT_TYPE: PyStaticExpr
const OUTPUT_TYPE: PyStaticExpr
experimental-inspect only.type Target = <&'a T as IntoPyObject<'py>>::Target
type Output = <&'a T as IntoPyObject<'py>>::Output
type Error = <&'a T as IntoPyObject<'py>>::Error
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'a, 'py, T, const N: usize> IntoPyObject<'py> for &'a [T; N]where
&'a T: IntoPyObject<'py>,
impl<'a, 'py, T, const N: usize> IntoPyObject<'py> for &'a [T; N]where
&'a T: IntoPyObject<'py>,
Source§const OUTPUT_TYPE: PyStaticExpr = <&[T]>::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = <&[T]>::OUTPUT_TYPE
experimental-inspect only.type Target = PyAny
type Output = Bound<'py, <&'a [T; N] as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for &&str
impl<'py> IntoPyObject<'py> for &&str
Source§const OUTPUT_TYPE: PyStaticExpr = String::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = String::OUTPUT_TYPE
experimental-inspect only.type Target = PyString
type Output = Bound<'py, <&&str as IntoPyObject<'py>>::Target>
type Error = Infallible
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for &&OsStr
impl<'py> IntoPyObject<'py> for &&OsStr
Source§const OUTPUT_TYPE: PyStaticExpr = <&OsStr>::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = <&OsStr>::OUTPUT_TYPE
experimental-inspect only.type Target = PyString
type Output = Bound<'py, <&&OsStr as IntoPyObject<'py>>::Target>
type Error = Infallible
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for &&Path
impl<'py> IntoPyObject<'py> for &&Path
Source§const OUTPUT_TYPE: PyStaticExpr = <&Path>::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = <&Path>::OUTPUT_TYPE
experimental-inspect only.type Target = PyAny
type Output = Bound<'py, <&&Path as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for &Cow<'_, str>
impl<'py> IntoPyObject<'py> for &Cow<'_, str>
Source§const OUTPUT_TYPE: PyStaticExpr = String::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = String::OUTPUT_TYPE
experimental-inspect only.type Target = PyString
type Output = Bound<'py, <&Cow<'_, str> as IntoPyObject<'py>>::Target>
type Error = Infallible
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for &Cow<'_, CStr>
impl<'py> IntoPyObject<'py> for &Cow<'_, CStr>
Source§const OUTPUT_TYPE: PyStaticExpr = <&CStr>::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = <&CStr>::OUTPUT_TYPE
experimental-inspect only.type Target = PyString
type Output = Bound<'py, <&Cow<'_, CStr> as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for &Cow<'_, OsStr>
impl<'py> IntoPyObject<'py> for &Cow<'_, OsStr>
Source§const OUTPUT_TYPE: PyStaticExpr = <&OsStr>::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = <&OsStr>::OUTPUT_TYPE
experimental-inspect only.type Target = PyString
type Output = Bound<'py, <&Cow<'_, OsStr> as IntoPyObject<'py>>::Target>
type Error = Infallible
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for &Cow<'_, Path>
impl<'py> IntoPyObject<'py> for &Cow<'_, Path>
Source§const OUTPUT_TYPE: PyStaticExpr = <&Path>::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = <&Path>::OUTPUT_TYPE
experimental-inspect only.type Target = PyAny
type Output = Bound<'py, <&Cow<'_, Path> as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for &IpAddr
impl<'py> IntoPyObject<'py> for &IpAddr
Source§const OUTPUT_TYPE: PyStaticExpr = IpAddr::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = IpAddr::OUTPUT_TYPE
experimental-inspect only.type Target = PyAny
type Output = Bound<'py, <&IpAddr as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for &bool
impl<'py> IntoPyObject<'py> for &bool
Source§const OUTPUT_TYPE: PyStaticExpr = bool::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = bool::OUTPUT_TYPE
experimental-inspect only.type Target = PyBool
type Output = Borrowed<'py, 'py, <&bool as IntoPyObject<'py>>::Target>
type Error = Infallible
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for &char
impl<'py> IntoPyObject<'py> for &char
Source§const OUTPUT_TYPE: PyStaticExpr = String::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = String::OUTPUT_TYPE
experimental-inspect only.type Target = PyString
type Output = Bound<'py, <&char as IntoPyObject<'py>>::Target>
type Error = Infallible
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for &f32
impl<'py> IntoPyObject<'py> for &f32
Source§const OUTPUT_TYPE: PyStaticExpr = f32::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = f32::OUTPUT_TYPE
experimental-inspect only.type Target = PyFloat
type Output = Bound<'py, <&f32 as IntoPyObject<'py>>::Target>
type Error = Infallible
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for &f64
impl<'py> IntoPyObject<'py> for &f64
Source§const OUTPUT_TYPE: PyStaticExpr = f64::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = f64::OUTPUT_TYPE
experimental-inspect only.type Target = PyFloat
type Output = Bound<'py, <&f64 as IntoPyObject<'py>>::Target>
type Error = Infallible
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for &i8
impl<'py> IntoPyObject<'py> for &i8
Source§const OUTPUT_TYPE: PyStaticExpr = i8::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = i8::OUTPUT_TYPE
experimental-inspect only.type Target = PyInt
type Output = Bound<'py, <&i8 as IntoPyObject<'py>>::Target>
type Error = Infallible
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for &i16
impl<'py> IntoPyObject<'py> for &i16
Source§const OUTPUT_TYPE: PyStaticExpr = i16::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = i16::OUTPUT_TYPE
experimental-inspect only.type Target = PyInt
type Output = Bound<'py, <&i16 as IntoPyObject<'py>>::Target>
type Error = Infallible
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for &i32
impl<'py> IntoPyObject<'py> for &i32
Source§const OUTPUT_TYPE: PyStaticExpr = i32::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = i32::OUTPUT_TYPE
experimental-inspect only.type Target = PyInt
type Output = Bound<'py, <&i32 as IntoPyObject<'py>>::Target>
type Error = Infallible
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for &i64
impl<'py> IntoPyObject<'py> for &i64
Source§const OUTPUT_TYPE: PyStaticExpr = i64::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = i64::OUTPUT_TYPE
experimental-inspect only.type Target = PyInt
type Output = Bound<'py, <&i64 as IntoPyObject<'py>>::Target>
type Error = Infallible
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for &i128
Available on non-Py_LIMITED_API only.
impl<'py> IntoPyObject<'py> for &i128
Py_LIMITED_API only.Source§const OUTPUT_TYPE: PyStaticExpr = i128::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = i128::OUTPUT_TYPE
experimental-inspect only.type Target = PyInt
type Output = Bound<'py, <&i128 as IntoPyObject<'py>>::Target>
type Error = Infallible
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for &isize
impl<'py> IntoPyObject<'py> for &isize
Source§const OUTPUT_TYPE: PyStaticExpr = isize::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = isize::OUTPUT_TYPE
experimental-inspect only.type Target = PyInt
type Output = Bound<'py, <&isize as IntoPyObject<'py>>::Target>
type Error = Infallible
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for &str
impl<'py> IntoPyObject<'py> for &str
Source§const OUTPUT_TYPE: PyStaticExpr = String::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = String::OUTPUT_TYPE
experimental-inspect only.type Target = PyString
type Output = Bound<'py, <&str as IntoPyObject<'py>>::Target>
type Error = Infallible
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for &u8
impl<'py> IntoPyObject<'py> for &u8
Source§const OUTPUT_TYPE: PyStaticExpr = u8::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = u8::OUTPUT_TYPE
experimental-inspect only.Source§const SEQUENCE_OUTPUT_TYPE: PyStaticExpr = PyBytes::TYPE_HINT
const SEQUENCE_OUTPUT_TYPE: PyStaticExpr = PyBytes::TYPE_HINT
experimental-inspect only.type Target = PyInt
type Output = Bound<'py, <&u8 as IntoPyObject<'py>>::Target>
type Error = Infallible
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
fn borrowed_sequence_into_pyobject<I>( iter: I, py: Python<'py>, _: Token, ) -> Result<Bound<'py, PyAny>, PyErr>
Source§impl<'py> IntoPyObject<'py> for &u16
impl<'py> IntoPyObject<'py> for &u16
Source§const OUTPUT_TYPE: PyStaticExpr = u16::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = u16::OUTPUT_TYPE
experimental-inspect only.type Target = PyInt
type Output = Bound<'py, <&u16 as IntoPyObject<'py>>::Target>
type Error = Infallible
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for &u32
impl<'py> IntoPyObject<'py> for &u32
Source§const OUTPUT_TYPE: PyStaticExpr = u32::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = u32::OUTPUT_TYPE
experimental-inspect only.type Target = PyInt
type Output = Bound<'py, <&u32 as IntoPyObject<'py>>::Target>
type Error = Infallible
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for &u64
impl<'py> IntoPyObject<'py> for &u64
Source§const OUTPUT_TYPE: PyStaticExpr = u64::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = u64::OUTPUT_TYPE
experimental-inspect only.type Target = PyInt
type Output = Bound<'py, <&u64 as IntoPyObject<'py>>::Target>
type Error = Infallible
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for &u128
Available on non-Py_LIMITED_API only.
impl<'py> IntoPyObject<'py> for &u128
Py_LIMITED_API only.Source§const OUTPUT_TYPE: PyStaticExpr = u128::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = u128::OUTPUT_TYPE
experimental-inspect only.type Target = PyInt
type Output = Bound<'py, <&u128 as IntoPyObject<'py>>::Target>
type Error = Infallible
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for &usize
impl<'py> IntoPyObject<'py> for &usize
Source§const OUTPUT_TYPE: PyStaticExpr = u64::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = u64::OUTPUT_TYPE
experimental-inspect only.type Target = PyInt
type Output = Bound<'py, <&usize as IntoPyObject<'py>>::Target>
type Error = Infallible
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for &CString
impl<'py> IntoPyObject<'py> for &CString
Source§const OUTPUT_TYPE: PyStaticExpr = <&CStr>::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = <&CStr>::OUTPUT_TYPE
experimental-inspect only.type Target = PyString
type Output = Bound<'py, <&CString as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for &String
impl<'py> IntoPyObject<'py> for &String
Source§const OUTPUT_TYPE: PyStaticExpr = String::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = String::OUTPUT_TYPE
experimental-inspect only.type Target = PyString
type Output = Bound<'py, <&String as IntoPyObject<'py>>::Target>
type Error = Infallible
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for &CStr
impl<'py> IntoPyObject<'py> for &CStr
Source§const OUTPUT_TYPE: PyStaticExpr = <&str>::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = <&str>::OUTPUT_TYPE
experimental-inspect only.type Target = PyString
type Output = Bound<'py, <&CStr as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for &Ipv4Addr
impl<'py> IntoPyObject<'py> for &Ipv4Addr
Source§const OUTPUT_TYPE: PyStaticExpr = Ipv4Addr::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = Ipv4Addr::OUTPUT_TYPE
experimental-inspect only.type Target = PyAny
type Output = Bound<'py, <&Ipv4Addr as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for &Ipv6Addr
impl<'py> IntoPyObject<'py> for &Ipv6Addr
Source§const OUTPUT_TYPE: PyStaticExpr = Ipv6Addr::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = Ipv6Addr::OUTPUT_TYPE
experimental-inspect only.type Target = PyAny
type Output = Bound<'py, <&Ipv6Addr as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for &Duration
impl<'py> IntoPyObject<'py> for &Duration
Source§const OUTPUT_TYPE: PyStaticExpr = Duration::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = Duration::OUTPUT_TYPE
experimental-inspect only.type Target = PyDelta
type Output = Bound<'py, <&Duration as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for &OsStr
impl<'py> IntoPyObject<'py> for &OsStr
Source§const OUTPUT_TYPE: PyStaticExpr = PyString::TYPE_HINT
const OUTPUT_TYPE: PyStaticExpr = PyString::TYPE_HINT
experimental-inspect only.type Target = PyString
type Output = Bound<'py, <&OsStr as IntoPyObject<'py>>::Target>
type Error = Infallible
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for &OsString
impl<'py> IntoPyObject<'py> for &OsString
Source§const OUTPUT_TYPE: PyStaticExpr = <&OsStr>::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = <&OsStr>::OUTPUT_TYPE
experimental-inspect only.type Target = PyString
type Output = Bound<'py, <&OsString as IntoPyObject<'py>>::Target>
type Error = Infallible
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for &Path
impl<'py> IntoPyObject<'py> for &Path
Source§impl<'py> IntoPyObject<'py> for &PathBuf
impl<'py> IntoPyObject<'py> for &PathBuf
Source§const OUTPUT_TYPE: PyStaticExpr = <&Path>::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = <&Path>::OUTPUT_TYPE
experimental-inspect only.type Target = PyAny
type Output = Bound<'py, <&PathBuf as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for &SystemTime
impl<'py> IntoPyObject<'py> for &SystemTime
Source§const OUTPUT_TYPE: PyStaticExpr = SystemTime::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = SystemTime::OUTPUT_TYPE
experimental-inspect only.type Target = PyDateTime
type Output = Bound<'py, <&SystemTime as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for &NaiveDate
Available on crate feature chrono only.
impl<'py> IntoPyObject<'py> for &NaiveDate
chrono only.Source§const OUTPUT_TYPE: PyStaticExpr = NaiveDate::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = NaiveDate::OUTPUT_TYPE
experimental-inspect only.type Target = PyDate
type Output = Bound<'py, <&NaiveDate as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for &NaiveDateTime
Available on crate feature chrono only.
impl<'py> IntoPyObject<'py> for &NaiveDateTime
chrono only.Source§const OUTPUT_TYPE: PyStaticExpr = NaiveDateTime::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = NaiveDateTime::OUTPUT_TYPE
experimental-inspect only.type Target = PyDateTime
type Output = Bound<'py, <&NaiveDateTime as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for &NaiveTime
Available on crate feature chrono only.
impl<'py> IntoPyObject<'py> for &NaiveTime
chrono only.Source§const OUTPUT_TYPE: PyStaticExpr = NaiveTime::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = NaiveTime::OUTPUT_TYPE
experimental-inspect only.type Target = PyTime
type Output = Bound<'py, <&NaiveTime as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for &FixedOffset
Available on crate feature chrono only.
impl<'py> IntoPyObject<'py> for &FixedOffset
chrono only.Source§const OUTPUT_TYPE: PyStaticExpr = FixedOffset::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = FixedOffset::OUTPUT_TYPE
experimental-inspect only.type Target = PyTzInfo
type Output = Bound<'py, <&FixedOffset as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for &Local
Available on crate features chrono and chrono-local only.
impl<'py> IntoPyObject<'py> for &Local
chrono and chrono-local only.Source§const OUTPUT_TYPE: PyStaticExpr = Local::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = Local::OUTPUT_TYPE
experimental-inspect only.type Target = PyTzInfo
type Output = Borrowed<'static, 'py, <&Local as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for &Utc
Available on crate feature chrono only.
impl<'py> IntoPyObject<'py> for &Utc
chrono only.Source§const OUTPUT_TYPE: PyStaticExpr = Utc::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = Utc::OUTPUT_TYPE
experimental-inspect only.type Target = PyTzInfo
type Output = Borrowed<'static, 'py, <&Utc as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for &BigInt
Available on crate feature num-bigint only.
impl<'py> IntoPyObject<'py> for &BigInt
num-bigint only.Source§const OUTPUT_TYPE: PyStaticExpr = PyInt::TYPE_HINT
const OUTPUT_TYPE: PyStaticExpr = PyInt::TYPE_HINT
experimental-inspect only.type Target = PyInt
type Output = Bound<'py, <&BigInt as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for &BigUint
Available on crate feature num-bigint only.
impl<'py> IntoPyObject<'py> for &BigUint
num-bigint only.Source§const OUTPUT_TYPE: PyStaticExpr = PyInt::TYPE_HINT
const OUTPUT_TYPE: PyStaticExpr = PyInt::TYPE_HINT
experimental-inspect only.type Target = PyInt
type Output = Bound<'py, <&BigUint as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for &Complex<f32>
Available on crate feature num-complex only.
impl<'py> IntoPyObject<'py> for &Complex<f32>
num-complex only.Source§const OUTPUT_TYPE: PyStaticExpr = Complex<f32>::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = Complex<f32>::OUTPUT_TYPE
experimental-inspect only.type Target = PyComplex
type Output = Bound<'py, <&Complex<f32> as IntoPyObject<'py>>::Target>
type Error = Infallible
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for &Complex<f64>
Available on crate feature num-complex only.
impl<'py> IntoPyObject<'py> for &Complex<f64>
num-complex only.Source§const OUTPUT_TYPE: PyStaticExpr = Complex<f64>::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = Complex<f64>::OUTPUT_TYPE
experimental-inspect only.type Target = PyComplex
type Output = Bound<'py, <&Complex<f64> as IntoPyObject<'py>>::Target>
type Error = Infallible
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for &Ratio<i8>
Available on crate feature num-rational only.
impl<'py> IntoPyObject<'py> for &Ratio<i8>
num-rational only.Source§impl<'py> IntoPyObject<'py> for &Ratio<i16>
Available on crate feature num-rational only.
impl<'py> IntoPyObject<'py> for &Ratio<i16>
num-rational only.Source§const OUTPUT_TYPE: PyStaticExpr
const OUTPUT_TYPE: PyStaticExpr
experimental-inspect only.type Target = PyAny
type Output = Bound<'py, <&Ratio<i16> as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for &Ratio<i32>
Available on crate feature num-rational only.
impl<'py> IntoPyObject<'py> for &Ratio<i32>
num-rational only.Source§const OUTPUT_TYPE: PyStaticExpr
const OUTPUT_TYPE: PyStaticExpr
experimental-inspect only.type Target = PyAny
type Output = Bound<'py, <&Ratio<i32> as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for &Ratio<i64>
Available on crate feature num-rational only.
impl<'py> IntoPyObject<'py> for &Ratio<i64>
num-rational only.Source§const OUTPUT_TYPE: PyStaticExpr
const OUTPUT_TYPE: PyStaticExpr
experimental-inspect only.type Target = PyAny
type Output = Bound<'py, <&Ratio<i64> as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for &Ratio<isize>
Available on crate feature num-rational only.
impl<'py> IntoPyObject<'py> for &Ratio<isize>
num-rational only.Source§const OUTPUT_TYPE: PyStaticExpr
const OUTPUT_TYPE: PyStaticExpr
experimental-inspect only.type Target = PyAny
type Output = Bound<'py, <&Ratio<isize> as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for &Ratio<BigInt>
Available on crate feature num-rational only.
impl<'py> IntoPyObject<'py> for &Ratio<BigInt>
num-rational only.Source§const OUTPUT_TYPE: PyStaticExpr
const OUTPUT_TYPE: PyStaticExpr
experimental-inspect only.type Target = PyAny
type Output = Bound<'py, <&Ratio<BigInt> as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for &NonNilUuid
Available on crate feature uuid only.
impl<'py> IntoPyObject<'py> for &NonNilUuid
uuid only.Source§const OUTPUT_TYPE: PyStaticExpr = NonNilUuid::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = NonNilUuid::OUTPUT_TYPE
experimental-inspect only.type Target = PyAny
type Output = Bound<'py, <&NonNilUuid as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for &Uuid
Available on crate feature uuid only.
impl<'py> IntoPyObject<'py> for &Uuid
uuid only.Source§const OUTPUT_TYPE: PyStaticExpr = Uuid::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = Uuid::OUTPUT_TYPE
experimental-inspect only.type Target = PyAny
type Output = Bound<'py, <&Uuid as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for &NonZeroI8
impl<'py> IntoPyObject<'py> for &NonZeroI8
Source§const OUTPUT_TYPE: PyStaticExpr = NonZeroI8::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = NonZeroI8::OUTPUT_TYPE
experimental-inspect only.type Target = PyInt
type Output = Bound<'py, <&NonZero<i8> as IntoPyObject<'py>>::Target>
type Error = Infallible
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for &NonZeroI16
impl<'py> IntoPyObject<'py> for &NonZeroI16
Source§const OUTPUT_TYPE: PyStaticExpr = NonZeroI16::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = NonZeroI16::OUTPUT_TYPE
experimental-inspect only.type Target = PyInt
type Output = Bound<'py, <&NonZero<i16> as IntoPyObject<'py>>::Target>
type Error = Infallible
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for &NonZeroI32
impl<'py> IntoPyObject<'py> for &NonZeroI32
Source§const OUTPUT_TYPE: PyStaticExpr = NonZeroI32::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = NonZeroI32::OUTPUT_TYPE
experimental-inspect only.type Target = PyInt
type Output = Bound<'py, <&NonZero<i32> as IntoPyObject<'py>>::Target>
type Error = Infallible
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for &NonZeroI64
impl<'py> IntoPyObject<'py> for &NonZeroI64
Source§const OUTPUT_TYPE: PyStaticExpr = NonZeroI64::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = NonZeroI64::OUTPUT_TYPE
experimental-inspect only.type Target = PyInt
type Output = Bound<'py, <&NonZero<i64> as IntoPyObject<'py>>::Target>
type Error = Infallible
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for &NonZeroI128
impl<'py> IntoPyObject<'py> for &NonZeroI128
Source§const OUTPUT_TYPE: PyStaticExpr = NonZeroI128::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = NonZeroI128::OUTPUT_TYPE
experimental-inspect only.type Target = PyInt
type Output = Bound<'py, <&NonZero<i128> as IntoPyObject<'py>>::Target>
type Error = Infallible
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for &NonZeroIsize
impl<'py> IntoPyObject<'py> for &NonZeroIsize
Source§const OUTPUT_TYPE: PyStaticExpr = NonZeroIsize::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = NonZeroIsize::OUTPUT_TYPE
experimental-inspect only.type Target = PyInt
type Output = Bound<'py, <&NonZero<isize> as IntoPyObject<'py>>::Target>
type Error = Infallible
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for &NonZeroU8
impl<'py> IntoPyObject<'py> for &NonZeroU8
Source§const OUTPUT_TYPE: PyStaticExpr = NonZeroU8::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = NonZeroU8::OUTPUT_TYPE
experimental-inspect only.type Target = PyInt
type Output = Bound<'py, <&NonZero<u8> as IntoPyObject<'py>>::Target>
type Error = Infallible
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for &NonZeroU16
impl<'py> IntoPyObject<'py> for &NonZeroU16
Source§const OUTPUT_TYPE: PyStaticExpr = NonZeroU16::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = NonZeroU16::OUTPUT_TYPE
experimental-inspect only.type Target = PyInt
type Output = Bound<'py, <&NonZero<u16> as IntoPyObject<'py>>::Target>
type Error = Infallible
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for &NonZeroU32
impl<'py> IntoPyObject<'py> for &NonZeroU32
Source§const OUTPUT_TYPE: PyStaticExpr = NonZeroU32::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = NonZeroU32::OUTPUT_TYPE
experimental-inspect only.type Target = PyInt
type Output = Bound<'py, <&NonZero<u32> as IntoPyObject<'py>>::Target>
type Error = Infallible
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for &NonZeroU64
impl<'py> IntoPyObject<'py> for &NonZeroU64
Source§const OUTPUT_TYPE: PyStaticExpr = NonZeroU64::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = NonZeroU64::OUTPUT_TYPE
experimental-inspect only.type Target = PyInt
type Output = Bound<'py, <&NonZero<u64> as IntoPyObject<'py>>::Target>
type Error = Infallible
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for &NonZeroU128
impl<'py> IntoPyObject<'py> for &NonZeroU128
Source§const OUTPUT_TYPE: PyStaticExpr = NonZeroU128::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = NonZeroU128::OUTPUT_TYPE
experimental-inspect only.type Target = PyInt
type Output = Bound<'py, <&NonZero<u128> as IntoPyObject<'py>>::Target>
type Error = Infallible
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for &NonZeroUsize
impl<'py> IntoPyObject<'py> for &NonZeroUsize
Source§const OUTPUT_TYPE: PyStaticExpr = NonZeroUsize::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = NonZeroUsize::OUTPUT_TYPE
experimental-inspect only.type Target = PyInt
type Output = Bound<'py, <&NonZero<usize> as IntoPyObject<'py>>::Target>
type Error = Infallible
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for &Duration
Available on crate feature chrono only.
impl<'py> IntoPyObject<'py> for &Duration
chrono only.Source§const OUTPUT_TYPE: PyStaticExpr = Duration::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = Duration::OUTPUT_TYPE
experimental-inspect only.type Target = PyDelta
type Output = Bound<'py, <&TimeDelta as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for &Bytes
Available on crate feature bytes only.
impl<'py> IntoPyObject<'py> for &Bytes
bytes only.Source§const OUTPUT_TYPE: PyStaticExpr = PyBytes::TYPE_HINT
const OUTPUT_TYPE: PyStaticExpr = PyBytes::TYPE_HINT
experimental-inspect only.type Target = PyBytes
type Output = Bound<'py, <&Bytes as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for &Date
Available on crate feature jiff-02 only.
impl<'py> IntoPyObject<'py> for &Date
jiff-02 only.Source§const OUTPUT_TYPE: PyStaticExpr = Date::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = Date::OUTPUT_TYPE
experimental-inspect only.type Target = PyDate
type Output = Bound<'py, <&Date as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for &Date
Available on crate feature time only.
impl<'py> IntoPyObject<'py> for &Date
time only.Source§const OUTPUT_TYPE: PyStaticExpr = Date::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = Date::OUTPUT_TYPE
experimental-inspect only.type Target = PyDate
type Output = Bound<'py, <&Date as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for &DateTime
Available on crate feature jiff-02 only.
impl<'py> IntoPyObject<'py> for &DateTime
jiff-02 only.Source§const OUTPUT_TYPE: PyStaticExpr = DateTime::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = DateTime::OUTPUT_TYPE
experimental-inspect only.type Target = PyDateTime
type Output = Bound<'py, <&DateTime as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for &Decimal
Available on crate feature rust_decimal only.
impl<'py> IntoPyObject<'py> for &Decimal
rust_decimal only.Source§const OUTPUT_TYPE: PyStaticExpr = Decimal::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = Decimal::OUTPUT_TYPE
experimental-inspect only.type Target = PyAny
type Output = Bound<'py, <&Decimal as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for &Duration
Available on crate feature time only.
impl<'py> IntoPyObject<'py> for &Duration
time only.Source§const OUTPUT_TYPE: PyStaticExpr = Duration::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = Duration::OUTPUT_TYPE
experimental-inspect only.type Target = PyDelta
type Output = Bound<'py, <&Duration as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for &ISOWeekDate
Available on crate feature jiff-02 only.
impl<'py> IntoPyObject<'py> for &ISOWeekDate
jiff-02 only.Source§const OUTPUT_TYPE: PyStaticExpr = ISOWeekDate::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = ISOWeekDate::OUTPUT_TYPE
experimental-inspect only.type Target = PyDate
type Output = Bound<'py, <&ISOWeekDate as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for &NotNan<f32>
Available on crate feature ordered-float only.
impl<'py> IntoPyObject<'py> for &NotNan<f32>
ordered-float only.Source§const OUTPUT_TYPE: PyStaticExpr = NotNan<f32>::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = NotNan<f32>::OUTPUT_TYPE
experimental-inspect only.type Target = PyFloat
type Output = Bound<'py, <&NotNan<f32> as IntoPyObject<'py>>::Target>
type Error = Infallible
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for &NotNan<f64>
Available on crate feature ordered-float only.
impl<'py> IntoPyObject<'py> for &NotNan<f64>
ordered-float only.Source§const OUTPUT_TYPE: PyStaticExpr = NotNan<f64>::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = NotNan<f64>::OUTPUT_TYPE
experimental-inspect only.type Target = PyFloat
type Output = Bound<'py, <&NotNan<f64> as IntoPyObject<'py>>::Target>
type Error = Infallible
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for &Offset
Available on crate feature jiff-02 only.
impl<'py> IntoPyObject<'py> for &Offset
jiff-02 only.Source§const OUTPUT_TYPE: PyStaticExpr = Offset::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = Offset::OUTPUT_TYPE
experimental-inspect only.type Target = PyTzInfo
type Output = Bound<'py, <&Offset as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for &OffsetDateTime
Available on crate feature time only.
impl<'py> IntoPyObject<'py> for &OffsetDateTime
time only.Source§const OUTPUT_TYPE: PyStaticExpr = OffsetDateTime::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = OffsetDateTime::OUTPUT_TYPE
experimental-inspect only.type Target = PyDateTime
type Output = Bound<'py, <&OffsetDateTime as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for &OrderedFloat<f32>
Available on crate feature ordered-float only.
impl<'py> IntoPyObject<'py> for &OrderedFloat<f32>
ordered-float only.Source§const OUTPUT_TYPE: PyStaticExpr = OrderedFloat<f32>::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = OrderedFloat<f32>::OUTPUT_TYPE
experimental-inspect only.type Target = PyFloat
type Output = Bound<'py, <&OrderedFloat<f32> as IntoPyObject<'py>>::Target>
type Error = Infallible
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for &OrderedFloat<f64>
Available on crate feature ordered-float only.
impl<'py> IntoPyObject<'py> for &OrderedFloat<f64>
ordered-float only.Source§const OUTPUT_TYPE: PyStaticExpr = OrderedFloat<f64>::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = OrderedFloat<f64>::OUTPUT_TYPE
experimental-inspect only.type Target = PyFloat
type Output = Bound<'py, <&OrderedFloat<f64> as IntoPyObject<'py>>::Target>
type Error = Infallible
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for &PrimitiveDateTime
Available on crate feature time only.
impl<'py> IntoPyObject<'py> for &PrimitiveDateTime
time only.Source§const OUTPUT_TYPE: PyStaticExpr = PrimitiveDateTime::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = PrimitiveDateTime::OUTPUT_TYPE
experimental-inspect only.type Target = PyDateTime
type Output = Bound<'py, <&PrimitiveDateTime as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for &SignedDuration
Available on crate feature jiff-02 only.
impl<'py> IntoPyObject<'py> for &SignedDuration
jiff-02 only.Source§const OUTPUT_TYPE: PyStaticExpr = SignedDuration::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = SignedDuration::OUTPUT_TYPE
experimental-inspect only.type Target = PyDelta
type Output = Bound<'py, <&SignedDuration as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for &Time
Available on crate feature jiff-02 only.
impl<'py> IntoPyObject<'py> for &Time
jiff-02 only.Source§const OUTPUT_TYPE: PyStaticExpr = Time::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = Time::OUTPUT_TYPE
experimental-inspect only.type Target = PyTime
type Output = Bound<'py, <&Time as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for &Time
Available on crate feature time only.
impl<'py> IntoPyObject<'py> for &Time
time only.Source§const OUTPUT_TYPE: PyStaticExpr = Time::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = Time::OUTPUT_TYPE
experimental-inspect only.type Target = PyTime
type Output = Bound<'py, <&Time as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for &TimeZone
Available on crate feature jiff-02 only.
impl<'py> IntoPyObject<'py> for &TimeZone
jiff-02 only.Source§const OUTPUT_TYPE: PyStaticExpr = PyTzInfo::TYPE_HINT
const OUTPUT_TYPE: PyStaticExpr = PyTzInfo::TYPE_HINT
experimental-inspect only.type Target = PyTzInfo
type Output = Bound<'py, <&TimeZone as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for &Timestamp
Available on crate feature jiff-02 only.
impl<'py> IntoPyObject<'py> for &Timestamp
jiff-02 only.Source§const OUTPUT_TYPE: PyStaticExpr = Timestamp::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = Timestamp::OUTPUT_TYPE
experimental-inspect only.type Target = PyDateTime
type Output = Bound<'py, <&Timestamp as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for &Tz
Available on Py_3_9 and crate feature chrono-tz only.
impl<'py> IntoPyObject<'py> for &Tz
Py_3_9 and crate feature chrono-tz only.Source§const OUTPUT_TYPE: PyStaticExpr = Tz::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = Tz::OUTPUT_TYPE
experimental-inspect only.type Target = PyTzInfo
type Output = Bound<'py, <&Tz as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for &UtcDateTime
Available on crate feature time only.
impl<'py> IntoPyObject<'py> for &UtcDateTime
time only.Source§const OUTPUT_TYPE: PyStaticExpr = UtcDateTime::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = UtcDateTime::OUTPUT_TYPE
experimental-inspect only.type Target = PyDateTime
type Output = Bound<'py, <&UtcDateTime as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for &UtcOffset
Available on crate feature time only.
impl<'py> IntoPyObject<'py> for &UtcOffset
time only.Source§const OUTPUT_TYPE: PyStaticExpr = UtcOffset::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = UtcOffset::OUTPUT_TYPE
experimental-inspect only.type Target = PyTzInfo
type Output = Bound<'py, <&UtcOffset as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for &Zoned
Available on crate feature jiff-02 only.
impl<'py> IntoPyObject<'py> for &Zoned
jiff-02 only.Source§const OUTPUT_TYPE: PyStaticExpr = PyDateTime::TYPE_HINT
const OUTPUT_TYPE: PyStaticExpr = PyDateTime::TYPE_HINT
experimental-inspect only.type Target = PyDateTime
type Output = Bound<'py, <&Zoned as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for Cow<'_, str>
impl<'py> IntoPyObject<'py> for Cow<'_, str>
Source§const OUTPUT_TYPE: PyStaticExpr = String::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = String::OUTPUT_TYPE
experimental-inspect only.type Target = PyString
type Output = Bound<'py, <Cow<'_, str> as IntoPyObject<'py>>::Target>
type Error = Infallible
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for Cow<'_, CStr>
impl<'py> IntoPyObject<'py> for Cow<'_, CStr>
Source§const OUTPUT_TYPE: PyStaticExpr = <&CStr>::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = <&CStr>::OUTPUT_TYPE
experimental-inspect only.type Target = PyString
type Output = Bound<'py, <Cow<'_, CStr> as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for Cow<'_, OsStr>
impl<'py> IntoPyObject<'py> for Cow<'_, OsStr>
Source§const OUTPUT_TYPE: PyStaticExpr = <&OsStr>::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = <&OsStr>::OUTPUT_TYPE
experimental-inspect only.type Target = PyString
type Output = Bound<'py, <Cow<'_, OsStr> as IntoPyObject<'py>>::Target>
type Error = Infallible
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for Cow<'_, Path>
impl<'py> IntoPyObject<'py> for Cow<'_, Path>
Source§const OUTPUT_TYPE: PyStaticExpr = <&Path>::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = <&Path>::OUTPUT_TYPE
experimental-inspect only.type Target = PyAny
type Output = Bound<'py, <Cow<'_, Path> as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for IpAddr
impl<'py> IntoPyObject<'py> for IpAddr
Source§impl<'py> IntoPyObject<'py> for bool
impl<'py> IntoPyObject<'py> for bool
Source§const OUTPUT_TYPE: PyStaticExpr = PyBool::TYPE_HINT
const OUTPUT_TYPE: PyStaticExpr = PyBool::TYPE_HINT
experimental-inspect only.type Target = PyBool
type Output = Borrowed<'py, 'py, <bool as IntoPyObject<'py>>::Target>
type Error = Infallible
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for char
impl<'py> IntoPyObject<'py> for char
Source§const OUTPUT_TYPE: PyStaticExpr = String::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = String::OUTPUT_TYPE
experimental-inspect only.type Target = PyString
type Output = Bound<'py, <char as IntoPyObject<'py>>::Target>
type Error = Infallible
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for f32
impl<'py> IntoPyObject<'py> for f32
Source§const OUTPUT_TYPE: PyStaticExpr = PyFloat::TYPE_HINT
const OUTPUT_TYPE: PyStaticExpr = PyFloat::TYPE_HINT
experimental-inspect only.type Target = PyFloat
type Output = Bound<'py, <f32 as IntoPyObject<'py>>::Target>
type Error = Infallible
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for f64
impl<'py> IntoPyObject<'py> for f64
Source§const OUTPUT_TYPE: PyStaticExpr = PyFloat::TYPE_HINT
const OUTPUT_TYPE: PyStaticExpr = PyFloat::TYPE_HINT
experimental-inspect only.type Target = PyFloat
type Output = Bound<'py, <f64 as IntoPyObject<'py>>::Target>
type Error = Infallible
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for i8
impl<'py> IntoPyObject<'py> for i8
Source§const OUTPUT_TYPE: PyStaticExpr = PyInt::TYPE_HINT
const OUTPUT_TYPE: PyStaticExpr = PyInt::TYPE_HINT
experimental-inspect only.type Target = PyInt
type Output = Bound<'py, <i8 as IntoPyObject<'py>>::Target>
type Error = Infallible
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for i16
impl<'py> IntoPyObject<'py> for i16
Source§const OUTPUT_TYPE: PyStaticExpr = PyInt::TYPE_HINT
const OUTPUT_TYPE: PyStaticExpr = PyInt::TYPE_HINT
experimental-inspect only.type Target = PyInt
type Output = Bound<'py, <i16 as IntoPyObject<'py>>::Target>
type Error = Infallible
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for i32
impl<'py> IntoPyObject<'py> for i32
Source§const OUTPUT_TYPE: PyStaticExpr = PyInt::TYPE_HINT
const OUTPUT_TYPE: PyStaticExpr = PyInt::TYPE_HINT
experimental-inspect only.type Target = PyInt
type Output = Bound<'py, <i32 as IntoPyObject<'py>>::Target>
type Error = Infallible
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for i64
impl<'py> IntoPyObject<'py> for i64
Source§const OUTPUT_TYPE: PyStaticExpr = PyInt::TYPE_HINT
const OUTPUT_TYPE: PyStaticExpr = PyInt::TYPE_HINT
experimental-inspect only.type Target = PyInt
type Output = Bound<'py, <i64 as IntoPyObject<'py>>::Target>
type Error = Infallible
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for i128
Available on non-Py_LIMITED_API only.
impl<'py> IntoPyObject<'py> for i128
Py_LIMITED_API only.Source§const OUTPUT_TYPE: PyStaticExpr = PyInt::TYPE_HINT
const OUTPUT_TYPE: PyStaticExpr = PyInt::TYPE_HINT
experimental-inspect only.type Target = PyInt
type Output = Bound<'py, <i128 as IntoPyObject<'py>>::Target>
type Error = Infallible
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for isize
impl<'py> IntoPyObject<'py> for isize
Source§const OUTPUT_TYPE: PyStaticExpr = PyInt::TYPE_HINT
const OUTPUT_TYPE: PyStaticExpr = PyInt::TYPE_HINT
experimental-inspect only.type Target = PyInt
type Output = Bound<'py, <isize as IntoPyObject<'py>>::Target>
type Error = Infallible
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for u8
impl<'py> IntoPyObject<'py> for u8
Source§const OUTPUT_TYPE: PyStaticExpr = PyInt::TYPE_HINT
const OUTPUT_TYPE: PyStaticExpr = PyInt::TYPE_HINT
experimental-inspect only.Source§const SEQUENCE_OUTPUT_TYPE: PyStaticExpr = PyBytes::TYPE_HINT
const SEQUENCE_OUTPUT_TYPE: PyStaticExpr = PyBytes::TYPE_HINT
experimental-inspect only.type Target = PyInt
type Output = Bound<'py, <u8 as IntoPyObject<'py>>::Target>
type Error = Infallible
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
fn owned_sequence_into_pyobject<I>( iter: I, py: Python<'py>, _: Token, ) -> Result<Bound<'py, PyAny>, PyErr>
Source§impl<'py> IntoPyObject<'py> for u16
impl<'py> IntoPyObject<'py> for u16
Source§const OUTPUT_TYPE: PyStaticExpr = PyInt::TYPE_HINT
const OUTPUT_TYPE: PyStaticExpr = PyInt::TYPE_HINT
experimental-inspect only.type Target = PyInt
type Output = Bound<'py, <u16 as IntoPyObject<'py>>::Target>
type Error = Infallible
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for u32
impl<'py> IntoPyObject<'py> for u32
Source§const OUTPUT_TYPE: PyStaticExpr = PyInt::TYPE_HINT
const OUTPUT_TYPE: PyStaticExpr = PyInt::TYPE_HINT
experimental-inspect only.type Target = PyInt
type Output = Bound<'py, <u32 as IntoPyObject<'py>>::Target>
type Error = Infallible
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for u64
impl<'py> IntoPyObject<'py> for u64
Source§const OUTPUT_TYPE: PyStaticExpr = PyInt::TYPE_HINT
const OUTPUT_TYPE: PyStaticExpr = PyInt::TYPE_HINT
experimental-inspect only.type Target = PyInt
type Output = Bound<'py, <u64 as IntoPyObject<'py>>::Target>
type Error = Infallible
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for u128
Available on non-Py_LIMITED_API only.
impl<'py> IntoPyObject<'py> for u128
Py_LIMITED_API only.Source§const OUTPUT_TYPE: PyStaticExpr = PyInt::TYPE_HINT
const OUTPUT_TYPE: PyStaticExpr = PyInt::TYPE_HINT
experimental-inspect only.type Target = PyInt
type Output = Bound<'py, <u128 as IntoPyObject<'py>>::Target>
type Error = Infallible
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for ()
impl<'py> IntoPyObject<'py> for ()
Source§impl<'py> IntoPyObject<'py> for usize
impl<'py> IntoPyObject<'py> for usize
Source§const OUTPUT_TYPE: PyStaticExpr = u64::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = u64::OUTPUT_TYPE
experimental-inspect only.type Target = PyInt
type Output = Bound<'py, <usize as IntoPyObject<'py>>::Target>
type Error = Infallible
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for CString
impl<'py> IntoPyObject<'py> for CString
Source§const OUTPUT_TYPE: PyStaticExpr = <&CStr>::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = <&CStr>::OUTPUT_TYPE
experimental-inspect only.type Target = PyString
type Output = Bound<'py, <CString as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for String
impl<'py> IntoPyObject<'py> for String
Source§const OUTPUT_TYPE: PyStaticExpr = PyString::TYPE_HINT
const OUTPUT_TYPE: PyStaticExpr = PyString::TYPE_HINT
experimental-inspect only.type Target = PyString
type Output = Bound<'py, <String as IntoPyObject<'py>>::Target>
type Error = Infallible
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for Ipv4Addr
impl<'py> IntoPyObject<'py> for Ipv4Addr
Source§impl<'py> IntoPyObject<'py> for Ipv6Addr
impl<'py> IntoPyObject<'py> for Ipv6Addr
Source§impl<'py> IntoPyObject<'py> for Duration
impl<'py> IntoPyObject<'py> for Duration
Source§const OUTPUT_TYPE: PyStaticExpr = PyDelta::TYPE_HINT
const OUTPUT_TYPE: PyStaticExpr = PyDelta::TYPE_HINT
experimental-inspect only.type Target = PyDelta
type Output = Bound<'py, <Duration as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for OsString
impl<'py> IntoPyObject<'py> for OsString
Source§const OUTPUT_TYPE: PyStaticExpr = <&OsStr>::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = <&OsStr>::OUTPUT_TYPE
experimental-inspect only.type Target = PyString
type Output = Bound<'py, <OsString as IntoPyObject<'py>>::Target>
type Error = Infallible
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for PathBuf
impl<'py> IntoPyObject<'py> for PathBuf
Source§const OUTPUT_TYPE: PyStaticExpr = <&Path>::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = <&Path>::OUTPUT_TYPE
experimental-inspect only.type Target = PyAny
type Output = Bound<'py, <PathBuf as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for SystemTime
impl<'py> IntoPyObject<'py> for SystemTime
Source§const OUTPUT_TYPE: PyStaticExpr = PyDateTime::TYPE_HINT
const OUTPUT_TYPE: PyStaticExpr = PyDateTime::TYPE_HINT
experimental-inspect only.type Target = PyDateTime
type Output = Bound<'py, <SystemTime as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for NaiveDate
Available on crate feature chrono only.
impl<'py> IntoPyObject<'py> for NaiveDate
chrono only.Source§const OUTPUT_TYPE: PyStaticExpr = PyDate::TYPE_HINT
const OUTPUT_TYPE: PyStaticExpr = PyDate::TYPE_HINT
experimental-inspect only.type Target = PyDate
type Output = Bound<'py, <NaiveDate as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for NaiveDateTime
Available on crate feature chrono only.
impl<'py> IntoPyObject<'py> for NaiveDateTime
chrono only.Source§const OUTPUT_TYPE: PyStaticExpr = PyDateTime::TYPE_HINT
const OUTPUT_TYPE: PyStaticExpr = PyDateTime::TYPE_HINT
experimental-inspect only.type Target = PyDateTime
type Output = Bound<'py, <NaiveDateTime as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for NaiveTime
Available on crate feature chrono only.
impl<'py> IntoPyObject<'py> for NaiveTime
chrono only.Source§const OUTPUT_TYPE: PyStaticExpr = PyTime::TYPE_HINT
const OUTPUT_TYPE: PyStaticExpr = PyTime::TYPE_HINT
experimental-inspect only.type Target = PyTime
type Output = Bound<'py, <NaiveTime as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for FixedOffset
Available on crate feature chrono only.
impl<'py> IntoPyObject<'py> for FixedOffset
chrono only.Source§const OUTPUT_TYPE: PyStaticExpr
const OUTPUT_TYPE: PyStaticExpr
experimental-inspect only.type Target = PyTzInfo
type Output = Bound<'py, <FixedOffset as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for Local
Available on crate features chrono and chrono-local only.
impl<'py> IntoPyObject<'py> for Local
chrono and chrono-local only.Source§const OUTPUT_TYPE: PyStaticExpr
const OUTPUT_TYPE: PyStaticExpr
experimental-inspect only.type Target = PyTzInfo
type Output = Borrowed<'static, 'py, <Local as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for Utc
Available on crate feature chrono only.
impl<'py> IntoPyObject<'py> for Utc
chrono only.Source§const OUTPUT_TYPE: PyStaticExpr
const OUTPUT_TYPE: PyStaticExpr
experimental-inspect only.type Target = PyTzInfo
type Output = Borrowed<'static, 'py, <Utc as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for BigInt
Available on crate feature num-bigint only.
impl<'py> IntoPyObject<'py> for BigInt
num-bigint only.Source§const OUTPUT_TYPE: PyStaticExpr = <&BigInt>::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = <&BigInt>::OUTPUT_TYPE
experimental-inspect only.type Target = PyInt
type Output = Bound<'py, <BigInt as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for BigUint
Available on crate feature num-bigint only.
impl<'py> IntoPyObject<'py> for BigUint
num-bigint only.Source§const OUTPUT_TYPE: PyStaticExpr = <&BigUint>::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = <&BigUint>::OUTPUT_TYPE
experimental-inspect only.type Target = PyInt
type Output = Bound<'py, <BigUint as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for Complex<f32>
Available on crate feature num-complex only.
impl<'py> IntoPyObject<'py> for Complex<f32>
num-complex only.Source§const OUTPUT_TYPE: PyStaticExpr
const OUTPUT_TYPE: PyStaticExpr
experimental-inspect only.type Target = PyComplex
type Output = Bound<'py, <Complex<f32> as IntoPyObject<'py>>::Target>
type Error = Infallible
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for Complex<f64>
Available on crate feature num-complex only.
impl<'py> IntoPyObject<'py> for Complex<f64>
num-complex only.Source§const OUTPUT_TYPE: PyStaticExpr
const OUTPUT_TYPE: PyStaticExpr
experimental-inspect only.type Target = PyComplex
type Output = Bound<'py, <Complex<f64> as IntoPyObject<'py>>::Target>
type Error = Infallible
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for Ratio<i8>
Available on crate feature num-rational only.
impl<'py> IntoPyObject<'py> for Ratio<i8>
num-rational only.Source§const OUTPUT_TYPE: PyStaticExpr = <&Ratio<i8>>::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = <&Ratio<i8>>::OUTPUT_TYPE
experimental-inspect only.type Target = PyAny
type Output = Bound<'py, <Ratio<i8> as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for Ratio<i16>
Available on crate feature num-rational only.
impl<'py> IntoPyObject<'py> for Ratio<i16>
num-rational only.Source§const OUTPUT_TYPE: PyStaticExpr = <&Ratio<i16>>::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = <&Ratio<i16>>::OUTPUT_TYPE
experimental-inspect only.type Target = PyAny
type Output = Bound<'py, <Ratio<i16> as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for Ratio<i32>
Available on crate feature num-rational only.
impl<'py> IntoPyObject<'py> for Ratio<i32>
num-rational only.Source§const OUTPUT_TYPE: PyStaticExpr = <&Ratio<i32>>::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = <&Ratio<i32>>::OUTPUT_TYPE
experimental-inspect only.type Target = PyAny
type Output = Bound<'py, <Ratio<i32> as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for Ratio<i64>
Available on crate feature num-rational only.
impl<'py> IntoPyObject<'py> for Ratio<i64>
num-rational only.Source§const OUTPUT_TYPE: PyStaticExpr = <&Ratio<i64>>::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = <&Ratio<i64>>::OUTPUT_TYPE
experimental-inspect only.type Target = PyAny
type Output = Bound<'py, <Ratio<i64> as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for Ratio<isize>
Available on crate feature num-rational only.
impl<'py> IntoPyObject<'py> for Ratio<isize>
num-rational only.Source§const OUTPUT_TYPE: PyStaticExpr = <&Ratio<isize>>::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = <&Ratio<isize>>::OUTPUT_TYPE
experimental-inspect only.type Target = PyAny
type Output = Bound<'py, <Ratio<isize> as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for Ratio<BigInt>
Available on crate feature num-rational only.
impl<'py> IntoPyObject<'py> for Ratio<BigInt>
num-rational only.Source§const OUTPUT_TYPE: PyStaticExpr = <&Ratio<BigInt>>::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = <&Ratio<BigInt>>::OUTPUT_TYPE
experimental-inspect only.type Target = PyAny
type Output = Bound<'py, <Ratio<BigInt> as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for NonNilUuid
Available on crate feature uuid only.
impl<'py> IntoPyObject<'py> for NonNilUuid
uuid only.Source§const OUTPUT_TYPE: PyStaticExpr = Uuid::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = Uuid::OUTPUT_TYPE
experimental-inspect only.type Target = PyAny
type Output = Bound<'py, <NonNilUuid as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for Uuid
Available on crate feature uuid only.
impl<'py> IntoPyObject<'py> for Uuid
uuid only.Source§impl<'py> IntoPyObject<'py> for NonZeroI8
impl<'py> IntoPyObject<'py> for NonZeroI8
Source§const OUTPUT_TYPE: PyStaticExpr = PyInt::TYPE_HINT
const OUTPUT_TYPE: PyStaticExpr = PyInt::TYPE_HINT
experimental-inspect only.type Target = PyInt
type Output = Bound<'py, <NonZero<i8> as IntoPyObject<'py>>::Target>
type Error = Infallible
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for NonZeroI16
impl<'py> IntoPyObject<'py> for NonZeroI16
Source§const OUTPUT_TYPE: PyStaticExpr = PyInt::TYPE_HINT
const OUTPUT_TYPE: PyStaticExpr = PyInt::TYPE_HINT
experimental-inspect only.type Target = PyInt
type Output = Bound<'py, <NonZero<i16> as IntoPyObject<'py>>::Target>
type Error = Infallible
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for NonZeroI32
impl<'py> IntoPyObject<'py> for NonZeroI32
Source§const OUTPUT_TYPE: PyStaticExpr = PyInt::TYPE_HINT
const OUTPUT_TYPE: PyStaticExpr = PyInt::TYPE_HINT
experimental-inspect only.type Target = PyInt
type Output = Bound<'py, <NonZero<i32> as IntoPyObject<'py>>::Target>
type Error = Infallible
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for NonZeroI64
impl<'py> IntoPyObject<'py> for NonZeroI64
Source§const OUTPUT_TYPE: PyStaticExpr = PyInt::TYPE_HINT
const OUTPUT_TYPE: PyStaticExpr = PyInt::TYPE_HINT
experimental-inspect only.type Target = PyInt
type Output = Bound<'py, <NonZero<i64> as IntoPyObject<'py>>::Target>
type Error = Infallible
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for NonZeroI128
impl<'py> IntoPyObject<'py> for NonZeroI128
Source§const OUTPUT_TYPE: PyStaticExpr = PyInt::TYPE_HINT
const OUTPUT_TYPE: PyStaticExpr = PyInt::TYPE_HINT
experimental-inspect only.type Target = PyInt
type Output = Bound<'py, <NonZero<i128> as IntoPyObject<'py>>::Target>
type Error = Infallible
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for NonZeroIsize
impl<'py> IntoPyObject<'py> for NonZeroIsize
Source§const OUTPUT_TYPE: PyStaticExpr = PyInt::TYPE_HINT
const OUTPUT_TYPE: PyStaticExpr = PyInt::TYPE_HINT
experimental-inspect only.type Target = PyInt
type Output = Bound<'py, <NonZero<isize> as IntoPyObject<'py>>::Target>
type Error = Infallible
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for NonZeroU8
impl<'py> IntoPyObject<'py> for NonZeroU8
Source§const OUTPUT_TYPE: PyStaticExpr = PyInt::TYPE_HINT
const OUTPUT_TYPE: PyStaticExpr = PyInt::TYPE_HINT
experimental-inspect only.type Target = PyInt
type Output = Bound<'py, <NonZero<u8> as IntoPyObject<'py>>::Target>
type Error = Infallible
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for NonZeroU16
impl<'py> IntoPyObject<'py> for NonZeroU16
Source§const OUTPUT_TYPE: PyStaticExpr = PyInt::TYPE_HINT
const OUTPUT_TYPE: PyStaticExpr = PyInt::TYPE_HINT
experimental-inspect only.type Target = PyInt
type Output = Bound<'py, <NonZero<u16> as IntoPyObject<'py>>::Target>
type Error = Infallible
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for NonZeroU32
impl<'py> IntoPyObject<'py> for NonZeroU32
Source§const OUTPUT_TYPE: PyStaticExpr = PyInt::TYPE_HINT
const OUTPUT_TYPE: PyStaticExpr = PyInt::TYPE_HINT
experimental-inspect only.type Target = PyInt
type Output = Bound<'py, <NonZero<u32> as IntoPyObject<'py>>::Target>
type Error = Infallible
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for NonZeroU64
impl<'py> IntoPyObject<'py> for NonZeroU64
Source§const OUTPUT_TYPE: PyStaticExpr = PyInt::TYPE_HINT
const OUTPUT_TYPE: PyStaticExpr = PyInt::TYPE_HINT
experimental-inspect only.type Target = PyInt
type Output = Bound<'py, <NonZero<u64> as IntoPyObject<'py>>::Target>
type Error = Infallible
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for NonZeroU128
impl<'py> IntoPyObject<'py> for NonZeroU128
Source§const OUTPUT_TYPE: PyStaticExpr = PyInt::TYPE_HINT
const OUTPUT_TYPE: PyStaticExpr = PyInt::TYPE_HINT
experimental-inspect only.type Target = PyInt
type Output = Bound<'py, <NonZero<u128> as IntoPyObject<'py>>::Target>
type Error = Infallible
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for NonZeroUsize
impl<'py> IntoPyObject<'py> for NonZeroUsize
Source§const OUTPUT_TYPE: PyStaticExpr = PyInt::TYPE_HINT
const OUTPUT_TYPE: PyStaticExpr = PyInt::TYPE_HINT
experimental-inspect only.type Target = PyInt
type Output = Bound<'py, <NonZero<usize> as IntoPyObject<'py>>::Target>
type Error = Infallible
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for Duration
Available on crate feature chrono only.
impl<'py> IntoPyObject<'py> for Duration
chrono only.Source§const OUTPUT_TYPE: PyStaticExpr = PyDelta::TYPE_HINT
const OUTPUT_TYPE: PyStaticExpr = PyDelta::TYPE_HINT
experimental-inspect only.type Target = PyDelta
type Output = Bound<'py, <TimeDelta as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for BigDecimal
Available on crate feature bigdecimal only.
impl<'py> IntoPyObject<'py> for BigDecimal
bigdecimal only.Source§impl<'py> IntoPyObject<'py> for Bytes
Available on crate feature bytes only.
impl<'py> IntoPyObject<'py> for Bytes
bytes only.Source§const OUTPUT_TYPE: PyStaticExpr = PyBytes::TYPE_HINT
const OUTPUT_TYPE: PyStaticExpr = PyBytes::TYPE_HINT
experimental-inspect only.type Target = PyBytes
type Output = Bound<'py, <Bytes as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for Date
Available on crate feature jiff-02 only.
impl<'py> IntoPyObject<'py> for Date
jiff-02 only.Source§const OUTPUT_TYPE: PyStaticExpr = PyDate::TYPE_HINT
const OUTPUT_TYPE: PyStaticExpr = PyDate::TYPE_HINT
experimental-inspect only.type Target = PyDate
type Output = Bound<'py, <Date as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for Date
Available on crate feature time only.
impl<'py> IntoPyObject<'py> for Date
time only.Source§const OUTPUT_TYPE: PyStaticExpr = PyDate::TYPE_HINT
const OUTPUT_TYPE: PyStaticExpr = PyDate::TYPE_HINT
experimental-inspect only.type Target = PyDate
type Output = Bound<'py, <Date as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for DateTime
Available on crate feature jiff-02 only.
impl<'py> IntoPyObject<'py> for DateTime
jiff-02 only.Source§const OUTPUT_TYPE: PyStaticExpr = PyDateTime::TYPE_HINT
const OUTPUT_TYPE: PyStaticExpr = PyDateTime::TYPE_HINT
experimental-inspect only.type Target = PyDateTime
type Output = Bound<'py, <DateTime as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for Decimal
Available on crate feature rust_decimal only.
impl<'py> IntoPyObject<'py> for Decimal
rust_decimal only.Source§impl<'py> IntoPyObject<'py> for Duration
Available on crate feature time only.
impl<'py> IntoPyObject<'py> for Duration
time only.Source§const OUTPUT_TYPE: PyStaticExpr = PyDelta::TYPE_HINT
const OUTPUT_TYPE: PyStaticExpr = PyDelta::TYPE_HINT
experimental-inspect only.type Target = PyDelta
type Output = Bound<'py, <Duration as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for ISOWeekDate
Available on crate feature jiff-02 only.
impl<'py> IntoPyObject<'py> for ISOWeekDate
jiff-02 only.Source§const OUTPUT_TYPE: PyStaticExpr = Date::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = Date::OUTPUT_TYPE
experimental-inspect only.type Target = PyDate
type Output = Bound<'py, <ISOWeekDate as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for NotNan<f32>
Available on crate feature ordered-float only.
impl<'py> IntoPyObject<'py> for NotNan<f32>
ordered-float only.Source§const OUTPUT_TYPE: PyStaticExpr = f32::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = f32::OUTPUT_TYPE
experimental-inspect only.type Target = PyFloat
type Output = Bound<'py, <NotNan<f32> as IntoPyObject<'py>>::Target>
type Error = Infallible
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for NotNan<f64>
Available on crate feature ordered-float only.
impl<'py> IntoPyObject<'py> for NotNan<f64>
ordered-float only.Source§const OUTPUT_TYPE: PyStaticExpr = f64::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = f64::OUTPUT_TYPE
experimental-inspect only.type Target = PyFloat
type Output = Bound<'py, <NotNan<f64> as IntoPyObject<'py>>::Target>
type Error = Infallible
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for Offset
Available on crate feature jiff-02 only.
impl<'py> IntoPyObject<'py> for Offset
jiff-02 only.Source§impl<'py> IntoPyObject<'py> for OffsetDateTime
Available on crate feature time only.
impl<'py> IntoPyObject<'py> for OffsetDateTime
time only.Source§const OUTPUT_TYPE: PyStaticExpr = PyDateTime::TYPE_HINT
const OUTPUT_TYPE: PyStaticExpr = PyDateTime::TYPE_HINT
experimental-inspect only.type Target = PyDateTime
type Output = Bound<'py, <OffsetDateTime as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for OrderedFloat<f32>
Available on crate feature ordered-float only.
impl<'py> IntoPyObject<'py> for OrderedFloat<f32>
ordered-float only.Source§const OUTPUT_TYPE: PyStaticExpr = f32::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = f32::OUTPUT_TYPE
experimental-inspect only.type Target = PyFloat
type Output = Bound<'py, <OrderedFloat<f32> as IntoPyObject<'py>>::Target>
type Error = Infallible
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for OrderedFloat<f64>
Available on crate feature ordered-float only.
impl<'py> IntoPyObject<'py> for OrderedFloat<f64>
ordered-float only.Source§const OUTPUT_TYPE: PyStaticExpr = f64::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = f64::OUTPUT_TYPE
experimental-inspect only.type Target = PyFloat
type Output = Bound<'py, <OrderedFloat<f64> as IntoPyObject<'py>>::Target>
type Error = Infallible
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for PrimitiveDateTime
Available on crate feature time only.
impl<'py> IntoPyObject<'py> for PrimitiveDateTime
time only.Source§const OUTPUT_TYPE: PyStaticExpr = PyDateTime::TYPE_HINT
const OUTPUT_TYPE: PyStaticExpr = PyDateTime::TYPE_HINT
experimental-inspect only.type Target = PyDateTime
type Output = Bound<'py, <PrimitiveDateTime as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for SignedDuration
Available on crate feature jiff-02 only.
impl<'py> IntoPyObject<'py> for SignedDuration
jiff-02 only.Source§const OUTPUT_TYPE: PyStaticExpr = PyDelta::TYPE_HINT
const OUTPUT_TYPE: PyStaticExpr = PyDelta::TYPE_HINT
experimental-inspect only.type Target = PyDelta
type Output = Bound<'py, <SignedDuration as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for Time
Available on crate feature jiff-02 only.
impl<'py> IntoPyObject<'py> for Time
jiff-02 only.Source§const OUTPUT_TYPE: PyStaticExpr = PyTime::TYPE_HINT
const OUTPUT_TYPE: PyStaticExpr = PyTime::TYPE_HINT
experimental-inspect only.type Target = PyTime
type Output = Bound<'py, <Time as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for Time
Available on crate feature time only.
impl<'py> IntoPyObject<'py> for Time
time only.Source§const OUTPUT_TYPE: PyStaticExpr = PyTime::TYPE_HINT
const OUTPUT_TYPE: PyStaticExpr = PyTime::TYPE_HINT
experimental-inspect only.type Target = PyTime
type Output = Bound<'py, <Time as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for TimeZone
Available on crate feature jiff-02 only.
impl<'py> IntoPyObject<'py> for TimeZone
jiff-02 only.Source§const OUTPUT_TYPE: PyStaticExpr = <&Self>::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = <&Self>::OUTPUT_TYPE
experimental-inspect only.type Target = PyTzInfo
type Output = Bound<'py, <TimeZone as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for Timestamp
Available on crate feature jiff-02 only.
impl<'py> IntoPyObject<'py> for Timestamp
jiff-02 only.Source§const OUTPUT_TYPE: PyStaticExpr = Zoned::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = Zoned::OUTPUT_TYPE
experimental-inspect only.type Target = PyDateTime
type Output = Bound<'py, <Timestamp as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for Tz
Available on Py_3_9 and crate feature chrono-tz only.
impl<'py> IntoPyObject<'py> for Tz
Py_3_9 and crate feature chrono-tz only.Source§impl<'py> IntoPyObject<'py> for UtcDateTime
Available on crate feature time only.
impl<'py> IntoPyObject<'py> for UtcDateTime
time only.Source§const OUTPUT_TYPE: PyStaticExpr = PyDateTime::TYPE_HINT
const OUTPUT_TYPE: PyStaticExpr = PyDateTime::TYPE_HINT
experimental-inspect only.type Target = PyDateTime
type Output = Bound<'py, <UtcDateTime as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for UtcOffset
Available on crate feature time only.
impl<'py> IntoPyObject<'py> for UtcOffset
time only.Source§const OUTPUT_TYPE: PyStaticExpr
const OUTPUT_TYPE: PyStaticExpr
experimental-inspect only.type Target = PyTzInfo
type Output = Bound<'py, <UtcOffset as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py> IntoPyObject<'py> for Zoned
Available on crate feature jiff-02 only.
impl<'py> IntoPyObject<'py> for Zoned
jiff-02 only.Source§const OUTPUT_TYPE: PyStaticExpr = <&Self>::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = <&Self>::OUTPUT_TYPE
experimental-inspect only.type Target = PyDateTime
type Output = Bound<'py, <Zoned as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py, A> IntoPyObject<'py> for SmallVec<A>where
A: Array,
A::Item: IntoPyObject<'py>,
Available on crate feature smallvec only.
impl<'py, A> IntoPyObject<'py> for SmallVec<A>where
A: Array,
A::Item: IntoPyObject<'py>,
smallvec only.Source§const OUTPUT_TYPE: PyStaticExpr = <A::Item>::SEQUENCE_OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = <A::Item>::SEQUENCE_OUTPUT_TYPE
experimental-inspect only.type Target = PyAny
type Output = Bound<'py, <SmallVec<A> as IntoPyObject<'py>>::Target>
type Error = PyErr
Source§impl<'py, K> IntoPyObject<'py> for BTreeSet<K>where
K: IntoPyObject<'py> + Ord,
impl<'py, K> IntoPyObject<'py> for BTreeSet<K>where
K: IntoPyObject<'py> + Ord,
Source§const OUTPUT_TYPE: PyStaticExpr
const OUTPUT_TYPE: PyStaticExpr
experimental-inspect only.type Target = PySet
type Output = Bound<'py, <BTreeSet<K> as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py, K, H> IntoPyObject<'py> for HashSet<K, H>
Available on crate feature hashbrown only.
impl<'py, K, H> IntoPyObject<'py> for HashSet<K, H>
hashbrown only.Source§const OUTPUT_TYPE: PyStaticExpr
const OUTPUT_TYPE: PyStaticExpr
experimental-inspect only.type Target = PySet
type Output = Bound<'py, <HashSet<K, H> as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py, K, S> IntoPyObject<'py> for HashSet<K, S>
impl<'py, K, S> IntoPyObject<'py> for HashSet<K, S>
Source§const OUTPUT_TYPE: PyStaticExpr
const OUTPUT_TYPE: PyStaticExpr
experimental-inspect only.type Target = PySet
type Output = Bound<'py, <HashSet<K, S> as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py, K, V> IntoPyObject<'py> for BTreeMap<K, V>
impl<'py, K, V> IntoPyObject<'py> for BTreeMap<K, V>
Source§const OUTPUT_TYPE: PyStaticExpr
const OUTPUT_TYPE: PyStaticExpr
experimental-inspect only.type Target = PyDict
type Output = Bound<'py, <BTreeMap<K, V> as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py, K, V, H> IntoPyObject<'py> for HashMap<K, V, H>
impl<'py, K, V, H> IntoPyObject<'py> for HashMap<K, V, H>
Source§const OUTPUT_TYPE: PyStaticExpr
const OUTPUT_TYPE: PyStaticExpr
experimental-inspect only.type Target = PyDict
type Output = Bound<'py, <HashMap<K, V, H> as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py, K, V, H> IntoPyObject<'py> for HashMap<K, V, H>
Available on crate feature hashbrown only.
impl<'py, K, V, H> IntoPyObject<'py> for HashMap<K, V, H>
hashbrown only.Source§const OUTPUT_TYPE: PyStaticExpr
const OUTPUT_TYPE: PyStaticExpr
experimental-inspect only.type Target = PyDict
type Output = Bound<'py, <HashMap<K, V, H> as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py, K, V, H> IntoPyObject<'py> for IndexMap<K, V, H>
Available on crate feature indexmap only.
impl<'py, K, V, H> IntoPyObject<'py> for IndexMap<K, V, H>
indexmap only.Source§const OUTPUT_TYPE: PyStaticExpr
const OUTPUT_TYPE: PyStaticExpr
experimental-inspect only.type Target = PyDict
type Output = Bound<'py, <IndexMap<K, V, H> as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py, L, R> IntoPyObject<'py> for Either<L, R>where
L: IntoPyObject<'py>,
R: IntoPyObject<'py>,
Available on crate feature either only.
impl<'py, L, R> IntoPyObject<'py> for Either<L, R>where
L: IntoPyObject<'py>,
R: IntoPyObject<'py>,
either only.Source§const OUTPUT_TYPE: PyStaticExpr
const OUTPUT_TYPE: PyStaticExpr
experimental-inspect only.type Target = PyAny
type Output = Bound<'py, <Either<L, R> as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py, T0> IntoPyObject<'py> for (T0,)where
T0: IntoPyObject<'py>,
impl<'py, T0> IntoPyObject<'py> for (T0,)where
T0: IntoPyObject<'py>,
Source§impl<'py, T0, T1> IntoPyObject<'py> for (T0, T1)where
T0: IntoPyObject<'py>,
T1: IntoPyObject<'py>,
impl<'py, T0, T1> IntoPyObject<'py> for (T0, T1)where
T0: IntoPyObject<'py>,
T1: IntoPyObject<'py>,
Source§impl<'py, T0, T1, T2> IntoPyObject<'py> for (T0, T1, T2)
impl<'py, T0, T1, T2> IntoPyObject<'py> for (T0, T1, T2)
Source§const OUTPUT_TYPE: PyStaticExpr
const OUTPUT_TYPE: PyStaticExpr
experimental-inspect only.type Target = PyTuple
type Output = Bound<'py, <(T0, T1, T2) as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py, T0, T1, T2, T3> IntoPyObject<'py> for (T0, T1, T2, T3)
impl<'py, T0, T1, T2, T3> IntoPyObject<'py> for (T0, T1, T2, T3)
Source§const OUTPUT_TYPE: PyStaticExpr
const OUTPUT_TYPE: PyStaticExpr
experimental-inspect only.type Target = PyTuple
type Output = Bound<'py, <(T0, T1, T2, T3) as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py, T0, T1, T2, T3, T4> IntoPyObject<'py> for (T0, T1, T2, T3, T4)where
T0: IntoPyObject<'py>,
T1: IntoPyObject<'py>,
T2: IntoPyObject<'py>,
T3: IntoPyObject<'py>,
T4: IntoPyObject<'py>,
impl<'py, T0, T1, T2, T3, T4> IntoPyObject<'py> for (T0, T1, T2, T3, T4)where
T0: IntoPyObject<'py>,
T1: IntoPyObject<'py>,
T2: IntoPyObject<'py>,
T3: IntoPyObject<'py>,
T4: IntoPyObject<'py>,
Source§const OUTPUT_TYPE: PyStaticExpr
const OUTPUT_TYPE: PyStaticExpr
experimental-inspect only.type Target = PyTuple
type Output = Bound<'py, <(T0, T1, T2, T3, T4) as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py, T0, T1, T2, T3, T4, T5> IntoPyObject<'py> for (T0, T1, T2, T3, T4, T5)where
T0: IntoPyObject<'py>,
T1: IntoPyObject<'py>,
T2: IntoPyObject<'py>,
T3: IntoPyObject<'py>,
T4: IntoPyObject<'py>,
T5: IntoPyObject<'py>,
impl<'py, T0, T1, T2, T3, T4, T5> IntoPyObject<'py> for (T0, T1, T2, T3, T4, T5)where
T0: IntoPyObject<'py>,
T1: IntoPyObject<'py>,
T2: IntoPyObject<'py>,
T3: IntoPyObject<'py>,
T4: IntoPyObject<'py>,
T5: IntoPyObject<'py>,
Source§const OUTPUT_TYPE: PyStaticExpr
const OUTPUT_TYPE: PyStaticExpr
experimental-inspect only.type Target = PyTuple
type Output = Bound<'py, <(T0, T1, T2, T3, T4, T5) as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py, T0, T1, T2, T3, T4, T5, T6> IntoPyObject<'py> for (T0, T1, T2, T3, T4, T5, T6)where
T0: IntoPyObject<'py>,
T1: IntoPyObject<'py>,
T2: IntoPyObject<'py>,
T3: IntoPyObject<'py>,
T4: IntoPyObject<'py>,
T5: IntoPyObject<'py>,
T6: IntoPyObject<'py>,
impl<'py, T0, T1, T2, T3, T4, T5, T6> IntoPyObject<'py> for (T0, T1, T2, T3, T4, T5, T6)where
T0: IntoPyObject<'py>,
T1: IntoPyObject<'py>,
T2: IntoPyObject<'py>,
T3: IntoPyObject<'py>,
T4: IntoPyObject<'py>,
T5: IntoPyObject<'py>,
T6: IntoPyObject<'py>,
Source§const OUTPUT_TYPE: PyStaticExpr
const OUTPUT_TYPE: PyStaticExpr
experimental-inspect only.type Target = PyTuple
type Output = Bound<'py, <(T0, T1, T2, T3, T4, T5, T6) as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py, T0, T1, T2, T3, T4, T5, T6, T7> IntoPyObject<'py> for (T0, T1, T2, T3, T4, T5, T6, T7)where
T0: IntoPyObject<'py>,
T1: IntoPyObject<'py>,
T2: IntoPyObject<'py>,
T3: IntoPyObject<'py>,
T4: IntoPyObject<'py>,
T5: IntoPyObject<'py>,
T6: IntoPyObject<'py>,
T7: IntoPyObject<'py>,
impl<'py, T0, T1, T2, T3, T4, T5, T6, T7> IntoPyObject<'py> for (T0, T1, T2, T3, T4, T5, T6, T7)where
T0: IntoPyObject<'py>,
T1: IntoPyObject<'py>,
T2: IntoPyObject<'py>,
T3: IntoPyObject<'py>,
T4: IntoPyObject<'py>,
T5: IntoPyObject<'py>,
T6: IntoPyObject<'py>,
T7: IntoPyObject<'py>,
Source§const OUTPUT_TYPE: PyStaticExpr
const OUTPUT_TYPE: PyStaticExpr
experimental-inspect only.type Target = PyTuple
type Output = Bound<'py, <(T0, T1, T2, T3, T4, T5, T6, T7) as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py, T0, T1, T2, T3, T4, T5, T6, T7, T8> IntoPyObject<'py> for (T0, T1, T2, T3, T4, T5, T6, T7, T8)where
T0: IntoPyObject<'py>,
T1: IntoPyObject<'py>,
T2: IntoPyObject<'py>,
T3: IntoPyObject<'py>,
T4: IntoPyObject<'py>,
T5: IntoPyObject<'py>,
T6: IntoPyObject<'py>,
T7: IntoPyObject<'py>,
T8: IntoPyObject<'py>,
impl<'py, T0, T1, T2, T3, T4, T5, T6, T7, T8> IntoPyObject<'py> for (T0, T1, T2, T3, T4, T5, T6, T7, T8)where
T0: IntoPyObject<'py>,
T1: IntoPyObject<'py>,
T2: IntoPyObject<'py>,
T3: IntoPyObject<'py>,
T4: IntoPyObject<'py>,
T5: IntoPyObject<'py>,
T6: IntoPyObject<'py>,
T7: IntoPyObject<'py>,
T8: IntoPyObject<'py>,
Source§const OUTPUT_TYPE: PyStaticExpr
const OUTPUT_TYPE: PyStaticExpr
experimental-inspect only.type Target = PyTuple
type Output = Bound<'py, <(T0, T1, T2, T3, T4, T5, T6, T7, T8) as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9> IntoPyObject<'py> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9)where
T0: IntoPyObject<'py>,
T1: IntoPyObject<'py>,
T2: IntoPyObject<'py>,
T3: IntoPyObject<'py>,
T4: IntoPyObject<'py>,
T5: IntoPyObject<'py>,
T6: IntoPyObject<'py>,
T7: IntoPyObject<'py>,
T8: IntoPyObject<'py>,
T9: IntoPyObject<'py>,
impl<'py, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9> IntoPyObject<'py> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9)where
T0: IntoPyObject<'py>,
T1: IntoPyObject<'py>,
T2: IntoPyObject<'py>,
T3: IntoPyObject<'py>,
T4: IntoPyObject<'py>,
T5: IntoPyObject<'py>,
T6: IntoPyObject<'py>,
T7: IntoPyObject<'py>,
T8: IntoPyObject<'py>,
T9: IntoPyObject<'py>,
Source§const OUTPUT_TYPE: PyStaticExpr
const OUTPUT_TYPE: PyStaticExpr
experimental-inspect only.type Target = PyTuple
type Output = Bound<'py, <(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9) as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> IntoPyObject<'py> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)where
T0: IntoPyObject<'py>,
T1: IntoPyObject<'py>,
T2: IntoPyObject<'py>,
T3: IntoPyObject<'py>,
T4: IntoPyObject<'py>,
T5: IntoPyObject<'py>,
T6: IntoPyObject<'py>,
T7: IntoPyObject<'py>,
T8: IntoPyObject<'py>,
T9: IntoPyObject<'py>,
T10: IntoPyObject<'py>,
impl<'py, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> IntoPyObject<'py> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)where
T0: IntoPyObject<'py>,
T1: IntoPyObject<'py>,
T2: IntoPyObject<'py>,
T3: IntoPyObject<'py>,
T4: IntoPyObject<'py>,
T5: IntoPyObject<'py>,
T6: IntoPyObject<'py>,
T7: IntoPyObject<'py>,
T8: IntoPyObject<'py>,
T9: IntoPyObject<'py>,
T10: IntoPyObject<'py>,
Source§const OUTPUT_TYPE: PyStaticExpr
const OUTPUT_TYPE: PyStaticExpr
experimental-inspect only.type Target = PyTuple
type Output = Bound<'py, <(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10) as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> IntoPyObject<'py> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)where
T0: IntoPyObject<'py>,
T1: IntoPyObject<'py>,
T2: IntoPyObject<'py>,
T3: IntoPyObject<'py>,
T4: IntoPyObject<'py>,
T5: IntoPyObject<'py>,
T6: IntoPyObject<'py>,
T7: IntoPyObject<'py>,
T8: IntoPyObject<'py>,
T9: IntoPyObject<'py>,
T10: IntoPyObject<'py>,
T11: IntoPyObject<'py>,
impl<'py, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> IntoPyObject<'py> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)where
T0: IntoPyObject<'py>,
T1: IntoPyObject<'py>,
T2: IntoPyObject<'py>,
T3: IntoPyObject<'py>,
T4: IntoPyObject<'py>,
T5: IntoPyObject<'py>,
T6: IntoPyObject<'py>,
T7: IntoPyObject<'py>,
T8: IntoPyObject<'py>,
T9: IntoPyObject<'py>,
T10: IntoPyObject<'py>,
T11: IntoPyObject<'py>,
Source§const OUTPUT_TYPE: PyStaticExpr
const OUTPUT_TYPE: PyStaticExpr
experimental-inspect only.type Target = PyTuple
type Output = Bound<'py, <(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11) as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py, T> IntoPyObject<'py> for Cow<'_, [T]>
impl<'py, T> IntoPyObject<'py> for Cow<'_, [T]>
Source§const OUTPUT_TYPE: PyStaticExpr = <&T>::SEQUENCE_OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = <&T>::SEQUENCE_OUTPUT_TYPE
experimental-inspect only.type Target = PyAny
type Output = Bound<'py, <Cow<'_, [T]> as IntoPyObject<'py>>::Target>
type Error = PyErr
Source§impl<'py, T> IntoPyObject<'py> for Option<T>where
T: IntoPyObject<'py>,
impl<'py, T> IntoPyObject<'py> for Option<T>where
T: IntoPyObject<'py>,
Source§const OUTPUT_TYPE: PyStaticExpr
const OUTPUT_TYPE: PyStaticExpr
experimental-inspect only.type Target = PyAny
type Output = Bound<'py, <Option<T> as IntoPyObject<'py>>::Target>
type Error = <T as IntoPyObject<'py>>::Error
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py, T> IntoPyObject<'py> for Vec<T>where
T: IntoPyObject<'py>,
impl<'py, T> IntoPyObject<'py> for Vec<T>where
T: IntoPyObject<'py>,
Source§const OUTPUT_TYPE: PyStaticExpr = T::SEQUENCE_OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = T::SEQUENCE_OUTPUT_TYPE
experimental-inspect only.type Target = PyAny
type Output = Bound<'py, <Vec<T> as IntoPyObject<'py>>::Target>
type Error = PyErr
Source§impl<'py, T, const N: usize> IntoPyObject<'py> for [T; N]where
T: IntoPyObject<'py>,
impl<'py, T, const N: usize> IntoPyObject<'py> for [T; N]where
T: IntoPyObject<'py>,
Source§const OUTPUT_TYPE: PyStaticExpr = T::SEQUENCE_OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = T::SEQUENCE_OUTPUT_TYPE
experimental-inspect only.type Target = PyAny
type Output = Bound<'py, <[T; N] as IntoPyObject<'py>>::Target>
type Error = PyErr
Source§impl<'py, T: Copy + IntoPyObject<'py>> IntoPyObject<'py> for &Cell<T>
impl<'py, T: Copy + IntoPyObject<'py>> IntoPyObject<'py> for &Cell<T>
Source§const OUTPUT_TYPE: PyStaticExpr = T::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = T::OUTPUT_TYPE
experimental-inspect only.type Target = <T as IntoPyObject<'py>>::Target
type Output = <T as IntoPyObject<'py>>::Output
type Error = <T as IntoPyObject<'py>>::Error
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py, T: Copy + IntoPyObject<'py>> IntoPyObject<'py> for Cell<T>
impl<'py, T: Copy + IntoPyObject<'py>> IntoPyObject<'py> for Cell<T>
Source§const OUTPUT_TYPE: PyStaticExpr = T::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = T::OUTPUT_TYPE
experimental-inspect only.type Target = <T as IntoPyObject<'py>>::Target
type Output = <T as IntoPyObject<'py>>::Output
type Error = <T as IntoPyObject<'py>>::Error
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py, Tz> IntoPyObject<'py> for &DateTime<Tz>where
Tz: IntoPyObject<'py> + TimeZone,
Available on crate feature chrono only.
impl<'py, Tz> IntoPyObject<'py> for &DateTime<Tz>where
Tz: IntoPyObject<'py> + TimeZone,
chrono only.Source§const OUTPUT_TYPE: PyStaticExpr = PyDateTime::TYPE_HINT
const OUTPUT_TYPE: PyStaticExpr = PyDateTime::TYPE_HINT
experimental-inspect only.type Target = PyDateTime
type Output = Bound<'py, <&DateTime<Tz> as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Source§impl<'py, Tz> IntoPyObject<'py> for DateTime<Tz>where
Tz: IntoPyObject<'py> + TimeZone,
Available on crate feature chrono only.
impl<'py, Tz> IntoPyObject<'py> for DateTime<Tz>where
Tz: IntoPyObject<'py> + TimeZone,
chrono only.Source§const OUTPUT_TYPE: PyStaticExpr = <&DateTime<Tz>>::OUTPUT_TYPE
const OUTPUT_TYPE: PyStaticExpr = <&DateTime<Tz>>::OUTPUT_TYPE
experimental-inspect only.type Target = PyDateTime
type Output = Bound<'py, <DateTime<Tz> as IntoPyObject<'py>>::Target>
type Error = PyErr
fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error>
Implementors§
Source§impl<'a, 'py, T: PyClass> IntoPyObject<'py> for &'a PyRef<'py, T>
impl<'a, 'py, T: PyClass> IntoPyObject<'py> for &'a PyRef<'py, T>
const OUTPUT_TYPE: PyStaticExpr = T::TYPE_HINT
type Target = T
type Output = Borrowed<'a, 'py, T>
type Error = Infallible
Source§impl<'a, 'py, T: PyClass> IntoPyObject<'py> for &PyClassGuard<'a, T>
impl<'a, 'py, T: PyClass> IntoPyObject<'py> for &PyClassGuard<'a, T>
const OUTPUT_TYPE: PyStaticExpr = T::TYPE_HINT
type Target = T
type Output = Borrowed<'a, 'py, T>
type Error = Infallible
Source§impl<'a, 'py, T: PyClass> IntoPyObject<'py> for PyClassGuard<'a, T>
impl<'a, 'py, T: PyClass> IntoPyObject<'py> for PyClassGuard<'a, T>
const OUTPUT_TYPE: PyStaticExpr = T::TYPE_HINT
type Target = T
type Output = Borrowed<'a, 'py, T>
type Error = Infallible
Source§impl<'a, 'py, T: PyClass<Frozen = False>> IntoPyObject<'py> for &'a PyRefMut<'py, T>
impl<'a, 'py, T: PyClass<Frozen = False>> IntoPyObject<'py> for &'a PyRefMut<'py, T>
const OUTPUT_TYPE: PyStaticExpr = T::TYPE_HINT
type Target = T
type Output = Borrowed<'a, 'py, T>
type Error = Infallible
Source§impl<'a, 'py, T: PyClass<Frozen = False>> IntoPyObject<'py> for &PyClassGuardMut<'a, T>
impl<'a, 'py, T: PyClass<Frozen = False>> IntoPyObject<'py> for &PyClassGuardMut<'a, T>
const OUTPUT_TYPE: PyStaticExpr = T::TYPE_HINT
type Target = T
type Output = Borrowed<'a, 'py, T>
type Error = Infallible
Source§impl<'a, 'py, T: PyClass<Frozen = False>> IntoPyObject<'py> for PyClassGuardMut<'a, T>
impl<'a, 'py, T: PyClass<Frozen = False>> IntoPyObject<'py> for PyClassGuardMut<'a, T>
const OUTPUT_TYPE: PyStaticExpr = T::TYPE_HINT
type Target = T
type Output = Borrowed<'a, 'py, T>
type Error = Infallible
Source§impl<'a, 'py, T: PyTypeCheck> IntoPyObject<'py> for &'a Bound<'py, T>
impl<'a, 'py, T: PyTypeCheck> IntoPyObject<'py> for &'a Bound<'py, T>
const OUTPUT_TYPE: PyStaticExpr = T::TYPE_HINT
type Target = T
type Output = Borrowed<'a, 'py, <&'a Bound<'py, T> as IntoPyObject<'py>>::Target>
type Error = Infallible
Source§impl<'a, 'py, T: PyTypeCheck> IntoPyObject<'py> for &'a Py<T>
impl<'a, 'py, T: PyTypeCheck> IntoPyObject<'py> for &'a Py<T>
const OUTPUT_TYPE: PyStaticExpr = T::TYPE_HINT
type Target = T
type Output = Borrowed<'a, 'py, <&'a Py<T> as IntoPyObject<'py>>::Target>
type Error = Infallible
Source§impl<'a, 'py, T: PyTypeCheck> IntoPyObject<'py> for &Borrowed<'a, 'py, T>
impl<'a, 'py, T: PyTypeCheck> IntoPyObject<'py> for &Borrowed<'a, 'py, T>
const OUTPUT_TYPE: PyStaticExpr = T::TYPE_HINT
type Target = T
type Output = Borrowed<'a, 'py, <&Borrowed<'a, 'py, T> as IntoPyObject<'py>>::Target>
type Error = Infallible
Source§impl<'a, 'py, T: PyTypeCheck> IntoPyObject<'py> for Borrowed<'a, 'py, T>
impl<'a, 'py, T: PyTypeCheck> IntoPyObject<'py> for Borrowed<'a, 'py, T>
const OUTPUT_TYPE: PyStaticExpr = T::TYPE_HINT
type Target = T
type Output = Borrowed<'a, 'py, <Borrowed<'a, 'py, T> as IntoPyObject<'py>>::Target>
type Error = Infallible
Source§impl<'py> IntoPyObject<'py> for &PyErr
impl<'py> IntoPyObject<'py> for &PyErr
const OUTPUT_TYPE: PyStaticExpr = PyErr::OUTPUT_TYPE
type Target = PyBaseException
type Output = Bound<'py, <&PyErr as IntoPyObject<'py>>::Target>
type Error = Infallible
Source§impl<'py> IntoPyObject<'py> for &PyBackedBytes
impl<'py> IntoPyObject<'py> for &PyBackedBytes
const OUTPUT_TYPE: PyStaticExpr = PyBytes::TYPE_HINT
type Target = PyBytes
type Output = Bound<'py, <&PyBackedBytes as IntoPyObject<'py>>::Target>
type Error = Infallible
Source§impl<'py> IntoPyObject<'py> for &PyBackedStr
impl<'py> IntoPyObject<'py> for &PyBackedStr
const OUTPUT_TYPE: PyStaticExpr = PyString::TYPE_HINT
type Target = PyString
type Output = Bound<'py, <&PyBackedStr as IntoPyObject<'py>>::Target>
type Error = Infallible
Source§impl<'py> IntoPyObject<'py> for &PySliceIndices
impl<'py> IntoPyObject<'py> for &PySliceIndices
const OUTPUT_TYPE: PyStaticExpr = PySlice::TYPE_HINT
type Target = PySlice
type Output = Bound<'py, <&PySliceIndices as IntoPyObject<'py>>::Target>
type Error = Infallible
Source§impl<'py> IntoPyObject<'py> for PyBytesWriter<'py>
impl<'py> IntoPyObject<'py> for PyBytesWriter<'py>
Source§impl<'py> IntoPyObject<'py> for Coroutine
Available on crate feature experimental-async only.
impl<'py> IntoPyObject<'py> for Coroutine
experimental-async only.Source§impl<'py> IntoPyObject<'py> for PyErr
impl<'py> IntoPyObject<'py> for PyErr
const OUTPUT_TYPE: PyStaticExpr = PyBaseException::TYPE_HINT
type Target = PyBaseException
type Output = Bound<'py, <PyErr as IntoPyObject<'py>>::Target>
type Error = Infallible
Source§impl<'py> IntoPyObject<'py> for PyUnicodeWriter<'py>
Available on Py_3_14 and non-Py_LIMITED_API only.
impl<'py> IntoPyObject<'py> for PyUnicodeWriter<'py>
Py_3_14 and non-Py_LIMITED_API only.