Trait pyo3::types::datetime::PyTzInfoAccess

source ·
pub trait PyTzInfoAccess<'py> {
    // Required method
    fn get_tzinfo_bound(&self) -> Option<Bound<'py, PyTzInfo>>;
}
Available on non-Py_LIMITED_API only.
Expand description

Trait for accessing the components of a struct containing a tzinfo.

Required Methods§

source

fn get_tzinfo_bound(&self) -> Option<Bound<'py, PyTzInfo>>

Returns the tzinfo (which may be None).

Implementations should conform to the upstream documentation: https://docs.python.org/3/c-api/datetime.html#c.PyDateTime_DATE_GET_TZINFO https://docs.python.org/3/c-api/datetime.html#c.PyDateTime_TIME_GET_TZINFO

Implementors§

source§

impl<'py> PyTzInfoAccess<'py> for &'py PyDateTime

source§

impl<'py> PyTzInfoAccess<'py> for &'py PyTime

source§

impl<'py> PyTzInfoAccess<'py> for Bound<'py, PyDateTime>

source§

impl<'py> PyTzInfoAccess<'py> for Bound<'py, PyTime>

⚠️ Internal Docs ⚠️ Not Public API 👉 Official Docs Here