pub trait Truncate<T>: Sized {
// Required method
fn truncate(self) -> T;
}
Expand description
Truncates this integer to a lower size
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.