Struct monotonic_clock::FloatDuration[][src]

pub struct FloatDuration(_);

Implementations

impl FloatDuration[src]

pub fn from_nanoseconds(nanos: u64) -> FloatDuration[src]

pub fn from_microseconds(micros: u64) -> FloatDuration[src]

pub fn from_milliseconds(millis: u64) -> FloatDuration[src]

pub fn from_seconds(seconds: u64) -> FloatDuration[src]

pub fn from_seconds_f32(seconds: f32) -> FloatDuration[src]

pub fn from_seconds_f64(seconds: f64) -> FloatDuration[src]

pub fn as_seconds(&self) -> f64[src]

pub fn as_nanoseconds(&self) -> f64[src]

pub fn as_milliseconds(&self) -> f64[src]

pub fn as_microseconds(&self) -> f64[src]

pub fn as_std(&self) -> Duration[src]

Trait Implementations

impl Add<FloatDuration> for FloatDuration[src]

type Output = FloatDuration

The resulting type after applying the + operator.

impl AddAssign<FloatDuration> for FloatDuration[src]

impl Clone for FloatDuration[src]

impl Debug for FloatDuration[src]

impl<'de> Deserialize<'de> for FloatDuration[src]

impl Div<f64> for FloatDuration[src]

type Output = FloatDuration

The resulting type after applying the / operator.

impl Div<u32> for FloatDuration[src]

type Output = FloatDuration

The resulting type after applying the / operator.

impl DivAssign<f64> for FloatDuration[src]

impl DivAssign<u32> for FloatDuration[src]

impl Hash for FloatDuration[src]

impl Mul<FloatDuration> for u32[src]

type Output = FloatDuration

The resulting type after applying the * operator.

impl Mul<FloatDuration> for f64[src]

type Output = FloatDuration

The resulting type after applying the * operator.

impl Mul<f64> for FloatDuration[src]

type Output = FloatDuration

The resulting type after applying the * operator.

impl Mul<u32> for FloatDuration[src]

type Output = FloatDuration

The resulting type after applying the * operator.

impl MulAssign<f64> for FloatDuration[src]

impl MulAssign<u32> for FloatDuration[src]

impl Ord for FloatDuration[src]

impl PartialEq<FloatDuration> for FloatDuration[src]

impl PartialOrd<FloatDuration> for FloatDuration[src]

impl Serialize for FloatDuration[src]

impl Sub<FloatDuration> for FloatDuration[src]

type Output = FloatDuration

The resulting type after applying the - operator.

impl SubAssign<FloatDuration> for FloatDuration[src]

impl Copy for FloatDuration[src]

impl Eq for FloatDuration[src]

impl StructuralEq for FloatDuration[src]

impl StructuralPartialEq for FloatDuration[src]

Auto Trait Implementations

impl RefUnwindSafe for FloatDuration

impl Send for FloatDuration

impl Sync for FloatDuration

impl Unpin for FloatDuration

impl UnwindSafe for FloatDuration

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]