[][src]Trait sr_primitives::traits::UniqueSaturatedInto

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

Consume self to return an equivalent value of T.

Loading content...

Implementors

impl UniqueSaturatedInto<u32> for Fixed64[src]

fn unique_saturated_into(self) -> u32[src]

Note that the maximum value of Fixed64 might be more than what can fit in u32. This is hence, expected to be lossy.

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

Loading content...