referrerpolicy=no-referrer-when-downgrade

Trait sp_arithmetic::traits::UniqueSaturatedInto

source ·
pub trait UniqueSaturatedInto<T: Sized>: Sized {
    // Required method
    fn unique_saturated_into(self) -> T;
}
Expand description

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§

source

fn unique_saturated_into(self) -> T

Consume self to return an equivalent value of T.

Object Safety§

This trait is not object safe.

Implementors§