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]

[src]

No difference in time.

[src]

Smallest positive time difference the library can work with.

Trait Implementations

impl Copy for TimeDelta
[src]

impl Clone for TimeDelta
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for TimeDelta
[src]

[src]

Formats the value using the given formatter.

impl PartialOrd for TimeDelta
[src]

[src]

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

[src]

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

[src]

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

[src]

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

[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]

[src]

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

[src]

🔬 This is a nightly-only experimental API. (ord_max_min)

Compares and returns the maximum of two values. Read more

[src]

🔬 This is a nightly-only experimental API. (ord_max_min)

Compares and returns the minimum of two values. Read more

impl PartialEq for TimeDelta
[src]

[src]

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

[src]

This method tests for !=.

impl Eq for TimeDelta
[src]

impl Hash for TimeDelta
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Sum for TimeDelta
[src]

[src]

Method which takes an iterator and generates Self from the elements by "summing up" the items. Read more

impl Display for TimeDelta
[src]

[src]

Formats the value using the given formatter. Read more

impl Add for TimeDelta
[src]

The resulting type after applying the + operator.

[src]

Performs the + operation.

impl AddAssign<TimeDelta> for TimeDelta
[src]

[src]

Performs the += operation.

impl Sub<TimeDelta> for TimeDelta
[src]

The resulting type after applying the - operator.

[src]

Performs the - operation.

impl SubAssign<TimeDelta> for TimeDelta
[src]

[src]

Performs the -= operation.

impl Mul<i64> for TimeDelta
[src]

The resulting type after applying the * operator.

[src]

Performs the * operation.

impl MulAssign<i64> for TimeDelta
[src]

[src]

Performs the *= operation.

impl Neg for TimeDelta
[src]

The resulting type after applying the - operator.

[src]

Performs the unary - operation.