Trait truncate_integer::TruncateUnchecked [−][src]
pub trait TruncateUnchecked<T> {
fn truncate_unchecked(self) -> T;
}
Required methods
fn truncate_unchecked(self) -> T
fn truncate_unchecked(self) -> T
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
).