Struct aligner::TimeDelta
[−]
[src]
pub struct TimeDelta(_);
This struct represents a time difference between two TimePoints
.
Internally its an integer type.
Methods
impl TimeDelta
[src]
fn zero() -> TimeDelta
[src]
No difference in time.
fn one() -> TimeDelta
[src]
Smallest positive time difference the library can work with.
Trait Implementations
impl Copy for TimeDelta
[src]
impl Clone for TimeDelta
[src]
fn clone(&self) -> TimeDelta
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for TimeDelta
[src]
impl PartialOrd for TimeDelta
[src]
fn partial_cmp(&self, __arg_0: &TimeDelta) -> Option<Ordering>
[src]
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &TimeDelta) -> bool
[src]
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &TimeDelta) -> bool
[src]
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, __arg_0: &TimeDelta) -> bool
[src]
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &TimeDelta) -> bool
[src]
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for TimeDelta
[src]
fn cmp(&self, __arg_0: &TimeDelta) -> Ordering
[src]
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
[src]
ord_max_min
)Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
[src]
ord_max_min
)Compares and returns the minimum of two values. Read more
impl PartialEq for TimeDelta
[src]
fn eq(&self, __arg_0: &TimeDelta) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &TimeDelta) -> bool
[src]
This method tests for !=
.
impl Eq for TimeDelta
[src]
impl Hash for TimeDelta
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Sum for TimeDelta
[src]
fn sum<I: Iterator<Item = TimeDelta>>(iter: I) -> TimeDelta
[src]
Method which takes an iterator and generates Self
from the elements by "summing up" the items. Read more
impl Display for TimeDelta
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Add for TimeDelta
[src]
type Output = TimeDelta
The resulting type after applying the +
operator.
fn add(self, rhs: TimeDelta) -> TimeDelta
[src]
Performs the +
operation.
impl AddAssign<TimeDelta> for TimeDelta
[src]
fn add_assign(&mut self, rhs: TimeDelta)
[src]
Performs the +=
operation.
impl Sub<TimeDelta> for TimeDelta
[src]
type Output = TimeDelta
The resulting type after applying the -
operator.
fn sub(self, rhs: TimeDelta) -> TimeDelta
[src]
Performs the -
operation.
impl SubAssign<TimeDelta> for TimeDelta
[src]
fn sub_assign(&mut self, rhs: TimeDelta)
[src]
Performs the -=
operation.
impl Mul<i64> for TimeDelta
[src]
type Output = TimeDelta
The resulting type after applying the *
operator.
fn mul(self, rhs: i64) -> TimeDelta
[src]
Performs the *
operation.
impl MulAssign<i64> for TimeDelta
[src]
fn mul_assign(&mut self, rhs: i64)
[src]
Performs the *=
operation.