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

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

Unwrap a conversion by saturating.

Associated Types

The result of unwrapping.

Required Methods

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

Implementors