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

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

Unwrap a conversion by saturating to infinity.

Associated Types

The result of unwrapping.

Required Methods

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

Implementors