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

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.

Implementors