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]

No difference in time.

Smallest positive time difference the library can work with.

Trait Implementations

impl Copy for TimeDelta
[src]

impl Clone for TimeDelta
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for TimeDelta
[src]

Formats the value using the given formatter.

impl PartialOrd for TimeDelta
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

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]

This method returns an Ordering between self and other. Read more

impl PartialEq for TimeDelta
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for TimeDelta
[src]

impl Hash for TimeDelta
[src]

Feeds this value into the state given, updating the hasher as necessary.

Feeds a slice of this type into the state provided.

impl Sum for 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]

Formats the value using the given formatter.

impl Add for TimeDelta
[src]

The resulting type after applying the + operator

The method for the + operator

impl AddAssign<TimeDelta> for TimeDelta
[src]

The method for the += operator

impl Sub<TimeDelta> for TimeDelta
[src]

The resulting type after applying the - operator

The method for the - operator

impl SubAssign<TimeDelta> for TimeDelta
[src]

The method for the -= operator

impl Mul<i64> for TimeDelta
[src]

The resulting type after applying the * operator

The method for the * operator

impl MulAssign<i64> for TimeDelta
[src]

The method for the *= operator

impl Neg for TimeDelta
[src]

The resulting type after applying the - operator

The method for the unary - operator