pub struct TimeDelta(/* private fields */);
Expand description
Difference between two moments in milliseconds
Trait Implementations§
source§impl AddAssign<TimeDelta> for Moment
impl AddAssign<TimeDelta> for Moment
source§fn add_assign(&mut self, rhs: TimeDelta)
fn add_assign(&mut self, rhs: TimeDelta)
Performs the
+=
operation. Read moresource§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 DivAssign<i64> for TimeDelta
impl DivAssign<i64> for TimeDelta
source§fn div_assign(&mut self, rhs: i64)
fn div_assign(&mut self, rhs: i64)
Performs the
/=
operation. Read moresource§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
source§impl PartialEq for TimeDelta
impl PartialEq for TimeDelta
source§impl PartialOrd for TimeDelta
impl PartialOrd for TimeDelta
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 SubAssign<TimeDelta> for Moment
impl SubAssign<TimeDelta> for Moment
source§fn sub_assign(&mut self, rhs: TimeDelta)
fn sub_assign(&mut self, rhs: TimeDelta)
Performs the
-=
operation. Read moresource§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 moreimpl Copy for TimeDelta
impl Eq for TimeDelta
impl StructuralEq for TimeDelta
impl StructuralPartialEq for TimeDelta
Auto Trait Implementations§
impl RefUnwindSafe for TimeDelta
impl Send for TimeDelta
impl Sync for TimeDelta
impl Unpin 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