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
type Output
The result of unwrapping.
Required Methods
fn unwrap_or_inf(self) -> Self::Output
Either unwraps the successfully converted value, or saturates to infinity in the "direction" of overflow.
Implementors
impl<T, E> UnwrapOrInf for Result<T, E> where
T: SignedInfinity,
E: Into<RangeErrorKind>,