pub struct TimeDelta(/* private fields */);Expand description
This struct represents a time difference between two TimePoints.
Internally its an integer type.
Implementations§
Trait Implementations§
Source§impl AddAssign for TimeDelta
impl AddAssign for TimeDelta
Source§fn add_assign(&mut self, rhs: TimeDelta)
fn add_assign(&mut self, rhs: TimeDelta)
Performs the
+= operation. Read moreSource§impl AddAssign<TimeDelta> for TimePoint
impl AddAssign<TimeDelta> for TimePoint
Source§fn add_assign(&mut self, rhs: TimeDelta)
fn add_assign(&mut self, rhs: TimeDelta)
Performs the
+= operation. Read moreimpl Copy for TimeDelta
impl Eq for TimeDelta
Source§impl MulAssign<i64> for TimeDelta
impl MulAssign<i64> for TimeDelta
Source§fn mul_assign(&mut self, rhs: i64)
fn mul_assign(&mut self, rhs: i64)
Performs the
*= operation. Read moreSource§impl Ord for TimeDelta
impl Ord for TimeDelta
1.21.0 (const: unstable) · 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 PartialOrd for TimeDelta
impl PartialOrd for TimeDelta
impl StructuralPartialEq for TimeDelta
Source§impl SubAssign for TimeDelta
impl SubAssign for TimeDelta
Source§fn sub_assign(&mut self, rhs: TimeDelta)
fn sub_assign(&mut self, rhs: TimeDelta)
Performs the
-= operation. Read moreAuto Trait Implementations§
impl Freeze for TimeDelta
impl RefUnwindSafe for TimeDelta
impl Send for TimeDelta
impl Sync for TimeDelta
impl Unpin for TimeDelta
impl UnsafeUnpin for TimeDelta
impl UnwindSafe for TimeDelta
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