Trait truncate_integer::TruncateFromUnchecked[][src]

pub trait TruncateFromUnchecked<T> {
    fn truncate_from_unchecked(value: T) -> Self;
}

Required methods

Perform unchecked bitwise truncation

If the value fits into the Self type, return that value. Otherwise, return the low-order bits that do fit.

This has the same result as using as to truncate (e.g. foo as u8).

Implementors