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
No difference in time.
fn one() -> TimeDelta
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
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
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>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &TimeDelta) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &TimeDelta) -> bool
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
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &TimeDelta) -> bool
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
This method returns an Ordering
between self
and other
. Read more
impl PartialEq for TimeDelta
[src]
fn eq(&self, __arg_0: &TimeDelta) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &TimeDelta) -> bool
This method tests for !=
.
impl Eq for TimeDelta
[src]
impl Hash for TimeDelta
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0
Feeds a slice of this type into the state provided.
impl Sum for TimeDelta
[src]
fn sum<I: Iterator<Item=TimeDelta>>(iter: I) -> TimeDelta
Method which takes an iterator and generates Self
from the elements by "summing up" the items. Read more
impl Display for TimeDelta
[src]
impl Add for TimeDelta
[src]
type Output = TimeDelta
The resulting type after applying the +
operator
fn add(self, rhs: TimeDelta) -> TimeDelta
The method for the +
operator
impl AddAssign<TimeDelta> for TimeDelta
[src]
fn add_assign(&mut self, rhs: TimeDelta)
The method for the +=
operator
impl Sub<TimeDelta> for TimeDelta
[src]
type Output = TimeDelta
The resulting type after applying the -
operator
fn sub(self, rhs: TimeDelta) -> TimeDelta
The method for the -
operator
impl SubAssign<TimeDelta> for TimeDelta
[src]
fn sub_assign(&mut self, rhs: TimeDelta)
The method for the -=
operator
impl Mul<i64> for TimeDelta
[src]
type Output = TimeDelta
The resulting type after applying the *
operator
fn mul(self, rhs: i64) -> TimeDelta
The method for the *
operator
impl MulAssign<i64> for TimeDelta
[src]
fn mul_assign(&mut self, rhs: i64)
The method for the *=
operator