pub struct Duration { /* private fields */ }Expand description
A duration is a length of time on the timeline, irrespective of time zone or calendar format, with millisecond precision.
Implementations§
Trait Implementations§
Source§impl Add<Duration> for LocalDateTime
impl Add<Duration> for LocalDateTime
Source§impl Sub<Duration> for LocalDateTime
impl Sub<Duration> for LocalDateTime
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