Trait sp_runtime::traits::UniqueSaturatedFrom [−][src]
Just like From
except that if the source value is too big to fit into the destination type
then it’ll saturate the destination.
Required methods
pub fn unique_saturated_from(t: T) -> Self
[src]
Convert from a value of T
into an equivalent instance of Self
.
Implementors
impl<T, S> UniqueSaturatedFrom<T> for S where
S: TryFrom<T> + Bounded,
[src]
S: TryFrom<T> + Bounded,