[][src]Trait conv::errors::UnwrapOrSaturate

pub trait UnwrapOrSaturate {
    type Output;
    fn unwrap_or_saturate(self) -> Self::Output;
}

Unwrap a conversion by saturating.

Associated Types

type Output

The result of unwrapping.

Loading content...

Required methods

fn unwrap_or_saturate(self) -> Self::Output

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

Loading content...

Implementations on Foreign Types

impl<T, E> UnwrapOrSaturate for Result<T, E> where
    T: Saturated,
    E: Into<RangeErrorKind>, 
[src]

type Output = T

Loading content...

Implementors

Loading content...