pub struct Duration(pub Duration);Expand description
A wrapper around chrono::Duration that can be converted to and from Python’s datetime.timedelta
Tuple Fields§
§0: DurationTrait Implementations§
Source§impl FromPyObject<'_> for Duration
impl FromPyObject<'_> for Duration
Source§impl Ord for Duration
impl Ord for Duration
Source§impl PartialOrd for Duration
impl PartialOrd for Duration
Source§impl ToPyObject for Duration
impl ToPyObject for Duration
impl Copy for Duration
impl Eq for Duration
impl StructuralPartialEq for Duration
Auto Trait Implementations§
impl Freeze for Duration
impl RefUnwindSafe for Duration
impl Send for Duration
impl Sync for Duration
impl Unpin for Duration
impl UnwindSafe for Duration
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> PyErrArguments for T
impl<T> PyErrArguments for T
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) -> R
fn with_borrowed_ptr<F, R>(&self, py: Python<'_>, f: F) -> 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