pub struct PyTzInfo(/* private fields */);
Expand description
Bindings for datetime.tzinfo
.
Values of this type are accessed via PyO3’s smart pointers, e.g. as
Py<PyTzInfo>
or Bound<'py, PyTzInfo>
.
This is an abstract base class and cannot be constructed directly.
For concrete time zone implementations, see timezone_utc_bound
and
the zoneinfo
module.
Trait Implementations§
Source§impl AsPyPointer for PyTzInfo
impl AsPyPointer for PyTzInfo
Source§impl PyTypeInfo for PyTzInfo
impl PyTypeInfo for PyTzInfo
Source§fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
Returns the PyTypeObject instance for this type.
Source§fn is_type_of_bound(obj: &Bound<'_, PyAny>) -> bool
fn is_type_of_bound(obj: &Bound<'_, PyAny>) -> bool
Checks if
object
is an instance of this type or a subclass of this type.impl DerefToPyAny for PyTzInfo
impl PyLayout<PyTzInfo> for PyObject
impl PySizedLayout<PyTzInfo> for PyObject
Auto Trait Implementations§
impl !Freeze for PyTzInfo
impl !RefUnwindSafe for PyTzInfo
impl !Send for PyTzInfo
impl !Sync for PyTzInfo
impl Unpin for PyTzInfo
impl UnwindSafe for PyTzInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more