Struct pyo3_chrono::NaiveDateTime
source · pub struct NaiveDateTime(pub NaiveDateTime);
Expand description
A wrapper around chrono::NaiveDateTime
that can be converted to and from Python’s datetime.datetime
Tuple Fields§
§0: NaiveDateTime
Trait Implementations§
source§impl Clone for NaiveDateTime
impl Clone for NaiveDateTime
source§fn clone(&self) -> NaiveDateTime
fn clone(&self) -> NaiveDateTime
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for NaiveDateTime
impl Debug for NaiveDateTime
source§impl Display for NaiveDateTime
impl Display for NaiveDateTime
source§impl From<NaiveDateTime> for NaiveDateTime
impl From<NaiveDateTime> for NaiveDateTime
source§fn from(inner: NaiveDateTime) -> Self
fn from(inner: NaiveDateTime) -> Self
Converts to this type from the input type.
source§impl From<NaiveDateTime> for NaiveDateTime
impl From<NaiveDateTime> for NaiveDateTime
source§fn from(wrapper: NaiveDateTime) -> Self
fn from(wrapper: NaiveDateTime) -> Self
Converts to this type from the input type.
source§impl FromPyObject<'_> for NaiveDateTime
impl FromPyObject<'_> for NaiveDateTime
source§impl Ord for NaiveDateTime
impl Ord for NaiveDateTime
source§fn cmp(&self, other: &NaiveDateTime) -> Ordering
fn cmp(&self, other: &NaiveDateTime) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<NaiveDateTime> for NaiveDateTime
impl PartialEq<NaiveDateTime> for NaiveDateTime
source§fn eq(&self, other: &NaiveDateTime) -> bool
fn eq(&self, other: &NaiveDateTime) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<NaiveDateTime> for NaiveDateTime
impl PartialOrd<NaiveDateTime> for NaiveDateTime
source§fn partial_cmp(&self, other: &NaiveDateTime) -> Option<Ordering>
fn partial_cmp(&self, other: &NaiveDateTime) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl ToPyObject for NaiveDateTime
impl ToPyObject for NaiveDateTime
impl Copy for NaiveDateTime
impl Eq for NaiveDateTime
impl StructuralEq for NaiveDateTime
impl StructuralPartialEq for NaiveDateTime
Auto Trait Implementations§
impl RefUnwindSafe for NaiveDateTime
impl Send for NaiveDateTime
impl Sync for NaiveDateTime
impl Unpin for NaiveDateTime
impl UnwindSafe for NaiveDateTime
Blanket Implementations§
source§impl<T> ToBorrowedObject for Twhere
T: ToPyObject,
impl<T> ToBorrowedObject for Twhere
T: ToPyObject,
source§fn with_borrowed_ptr<F, R>(&self, py: Python<'_>, f: F) -> Rwhere
F: FnOnce(*mut PyObject) -> R,
fn with_borrowed_ptr<F, R>(&self, py: Python<'_>, f: F) -> Rwhere
F: FnOnce(*mut PyObject) -> R,
👎Deprecated since 0.17.0: this trait is no longer used by PyO3, use ToPyObject or IntoPy<PyObject>
Converts self into a Python object and calls the specified closure
on the native FFI pointer underlying the Python object. Read more