Struct coarsetime::Duration [] [src]

pub struct Duration(_);

A duration type to represent an approximate span of time

Methods

impl Duration
[src]

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

Creates a new Duration from the specified number of seconds

Creates a new Duration from the specified number of milliseconds

Returns the number of whole seconds represented by this duration

Returns the nanosecond precision represented by this duration

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]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Duration
[src]

Formats the value using the given formatter.

impl Hash for Duration
[src]

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

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

impl Ord for Duration
[src]

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

impl Eq for Duration
[src]

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

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

This method tests for !=.

impl Default for Duration
[src]

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

impl Add for Duration
[src]

The resulting type after applying the + operator

The method for the + operator

impl AddAssign for Duration
[src]

The method for the += operator

impl Sub for Duration
[src]

The resulting type after applying the - operator

The method for the - operator

impl SubAssign for Duration
[src]

The method for the -= operator

impl Mul<u32> for Duration
[src]

The resulting type after applying the * operator

The method for the * operator

impl MulAssign<u32> for Duration
[src]

The method for the *= operator

impl Div<u32> for Duration
[src]

The resulting type after applying the / operator

The method for the / operator

impl DivAssign<u32> for Duration
[src]

The method for the /= operator

impl Into<Duration> for Duration
[src]

Performs the conversion.

impl From<Duration> for Duration
[src]

Performs the conversion.