Struct pyo3_chrono::NaiveTime
source · pub struct NaiveTime(pub NaiveTime);
Expand description
A wrapper around chrono::NaiveTime
that can be converted to and from Python’s datetime.time
Tuple Fields§
§0: NaiveTime
Trait Implementations§
source§impl FromPyObject<'_> for NaiveTime
impl FromPyObject<'_> for NaiveTime
source§impl Ord for NaiveTime
impl Ord for NaiveTime
source§impl PartialEq<NaiveTime> for NaiveTime
impl PartialEq<NaiveTime> for NaiveTime
source§impl PartialOrd<NaiveTime> for NaiveTime
impl PartialOrd<NaiveTime> for NaiveTime
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 NaiveTime
impl ToPyObject for NaiveTime
impl Copy for NaiveTime
impl Eq for NaiveTime
impl StructuralEq for NaiveTime
impl StructuralPartialEq for NaiveTime
Auto Trait Implementations§
impl RefUnwindSafe for NaiveTime
impl Send for NaiveTime
impl Sync for NaiveTime
impl Unpin for NaiveTime
impl UnwindSafe for NaiveTime
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