[][src]Trait conv::errors::UnwrapOrInf

pub trait UnwrapOrInf {
    type Output;
    fn unwrap_or_inf(self) -> Self::Output;
}

Unwrap a conversion by saturating to infinity.

Associated Types

type Output

The result of unwrapping.

Loading content...

Required methods

fn unwrap_or_inf(self) -> Self::Output

Either unwraps the successfully converted value, or saturates to infinity in the "direction" of overflow.

Loading content...

Implementations on Foreign Types

impl<T, E> UnwrapOrInf for Result<T, E> where
    T: SignedInfinity,
    E: Into<RangeErrorKind>, 
[src]

type Output = T

Loading content...

Implementors

Loading content...