Trait truncate_integer::TruncateUnchecked[][src]

pub trait TruncateUnchecked<T> {
    fn truncate_unchecked(self) -> T;
}

Required methods

Perform unchecked bitwise truncation

If the value fits into the target 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).

Implementations on Foreign Types

Implementors