Trait sp_arithmetic::traits::UniqueSaturatedInto[][src]

pub trait UniqueSaturatedInto<T: Sized>: Sized {
    fn unique_saturated_into(self) -> T;
}

Just like Into except that if the source value is too big to fit into the destination type then it'll saturate the destination.

Required methods

fn unique_saturated_into(self) -> T[src]

Consume self to return an equivalent value of T.

Loading content...

Implementors

impl<T: Bounded + Sized, S: TryInto<T> + Sized> UniqueSaturatedInto<T> for S[src]

Loading content...