Struct coarsetime::Duration [] [src]

pub struct Duration(_);

A duration type to represent an approximate span of time

Methods

impl Duration
[src]

[src]

Creates a new Duration from the specified number of seconds and additional nanosecond precision

[src]

Creates a new Duration from the specified number of seconds

[src]

Creates a new Duration from the specified number of milliseconds

[src]

Returns the number of whole seconds represented by this duration

[src]

Returns the nanosecond precision represented by this duration

[src]

Returns the duration as a floating point number, representing the number of seconds

Trait Implementations

impl Copy for Duration
[src]

impl Clone for Duration
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Duration
[src]

[src]

Formats the value using the given formatter.

impl Hash for Duration
[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 Ord for Duration
[src]

[src]

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

1.22.0
[src]

Compares and returns the maximum of two values. Read more

1.22.0
[src]

Compares and returns the minimum of two values. Read more

impl Eq for Duration
[src]

impl PartialOrd for Duration
[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 PartialEq for Duration
[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 Default for Duration
[src]

[src]

Returns the "default value" for a type. Read more

impl Add for Duration
[src]

The resulting type after applying the + operator.

[src]

Performs the + operation.

impl AddAssign for Duration
[src]

[src]

Performs the += operation.

impl Sub for Duration
[src]

The resulting type after applying the - operator.

[src]

Performs the - operation.

impl SubAssign for Duration
[src]

[src]

Performs the -= operation.

impl Mul<u32> for Duration
[src]

The resulting type after applying the * operator.

[src]

Performs the * operation.

impl MulAssign<u32> for Duration
[src]

[src]

Performs the *= operation.

impl Div<u32> for Duration
[src]

The resulting type after applying the / operator.

[src]

Performs the / operation.

impl DivAssign<u32> for Duration
[src]

[src]

Performs the /= operation.

impl Into<Duration> for Duration
[src]

[src]

Performs the conversion.

impl From<Duration> for Duration
[src]

[src]

Performs the conversion.