conv::errors

Trait UnwrapOrInf

Source
pub trait UnwrapOrInf {
    type Output;

    // Required method
    fn unwrap_or_inf(self) -> Self::Output;
}
Expand description

Unwrap a conversion by saturating to infinity.

Required Associated Types§

Source

type Output

The result of unwrapping.

Required Methods§

Source

fn unwrap_or_inf(self) -> Self::Output

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

Implementations on Foreign Types§

Source§

impl<T, E> UnwrapOrInf for Result<T, E>

Implementors§