[][src]Trait float_duration::duration::FromDuration

pub trait FromDuration<T>: Sized {
    type Error;
    fn from_duration(from: T) -> Result<Self, Self::Error>;
}

A fallible conversion from one duration representation to another.

This is very similar to the std::convert::TryFrom trait which is currently unstable.

Associated Types

Required Methods

Convert from into a Self object.

Implementations on Foreign Types

impl FromDuration<FloatDuration> for Duration
[src]

impl FromDuration<FloatDuration> for Duration
[src]

Implementors

impl FromDuration<Duration> for FloatDuration
[src]

impl FromDuration<Duration> for FloatDuration
[src]