[−][src]Trait float_duration::duration::FromDuration
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
type Error
Required Methods
fn from_duration(from: T) -> Result<Self, Self::Error>
Convert from
into a Self
object.
Implementations on Foreign Types
impl FromDuration<FloatDuration> for Duration
[src]
impl FromDuration<FloatDuration> for Duration
type Error = OutOfRangeError
fn from_duration(from: FloatDuration) -> Result<Duration, OutOfRangeError>
[src]
fn from_duration(from: FloatDuration) -> Result<Duration, OutOfRangeError>
impl FromDuration<FloatDuration> for Duration
[src]
impl FromDuration<FloatDuration> for Duration
type Error = OutOfRangeError
fn from_duration(from: FloatDuration) -> Result<Duration, OutOfRangeError>
[src]
fn from_duration(from: FloatDuration) -> Result<Duration, OutOfRangeError>
Implementors
impl FromDuration<Duration> for FloatDuration
[src]
impl FromDuration<Duration> for FloatDuration
type Error = ()
fn from_duration(from: Duration) -> Result<FloatDuration, ()>
[src]
fn from_duration(from: Duration) -> Result<FloatDuration, ()>
impl FromDuration<Duration> for FloatDuration
[src]
impl FromDuration<Duration> for FloatDuration
type Error = ()
fn from_duration(from: Duration) -> Result<FloatDuration, ()>
[src]
fn from_duration(from: Duration) -> Result<FloatDuration, ()>