Struct diesel_chrono_duration::ChronoDurationProxy [] [src]

pub struct ChronoDurationProxy(pub Duration);

Methods from Deref<Target = Duration>

[src]

Returns the total number of whole weeks in the duration.

[src]

Returns the total number of whole days in the duration.

[src]

Returns the total number of whole hours in the duration.

[src]

Returns the total number of whole minutes in the duration.

[src]

Returns the total number of whole seconds in the duration.

[src]

Returns the total number of whole milliseconds in the duration,

[src]

Returns the total number of whole microseconds in the duration, or None on overflow (exceeding 263 microseconds in either direction).

[src]

Returns the total number of whole nanoseconds in the duration, or None on overflow (exceeding 263 nanoseconds in either direction).

[src]

Add two durations, returning None if overflow occurred.

[src]

Subtract two durations, returning None if overflow occurred.

[src]

Returns true if the duration equals Duration::zero().

[src]

Creates a std::time::Duration object from time::Duration

This function errors when duration is less than zero. As standard library implementation is limited to non-negative values.

Trait Implementations

impl Debug for ChronoDurationProxy
[src]

[src]

Formats the value using the given formatter.

impl Copy for ChronoDurationProxy
[src]

impl Clone for ChronoDurationProxy
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

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

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

[src]

Performs the conversion.

impl AsRef<Duration> for ChronoDurationProxy
[src]

[src]

Performs the conversion.

impl Deref for ChronoDurationProxy
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.

impl<DB> ToSql<BigInt, DB> for ChronoDurationProxy where
    i64: ToSql<BigInt, DB>,
    DB: Backend
[src]

[src]

See the trait documentation.

impl<DB> FromSql<BigInt, DB> for ChronoDurationProxy where
    i64: FromSql<BigInt, DB>,
    DB: Backend
[src]

[src]

See the trait documentation.