[][src]Trait float_duration::duration::IntoDuration

pub trait IntoDuration<T>: Sized {
    type Error;
    fn into_duration(self) -> Result<T, Self::Error>;
}

A fallible conversion that consumes self.

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

Similar to std::convert::Into, this trait is reflexively implemented for all implementations of FromDuration and should not be manually implemented.

Associated Types

Required Methods

Convert self into a T object.

Implementors

impl<T, U> IntoDuration<U> for T where
    U: FromDuration<T>, 
[src]