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§
Required Methods§
Sourcefn unwrap_or_inf(self) -> Self::Output
fn unwrap_or_inf(self) -> Self::Output
Either unwraps the successfully converted value, or saturates to infinity in the “direction” of overflow.