pub trait UnsignedInt: Copy + Into<u64> {
// Required method
fn truncate_u64(v: u64) -> u64;
}Expand description
Trait implemented by target platform unsigned integer types (u8, u16,
u32, u64).
Required Methods§
Sourcefn truncate_u64(v: u64) -> u64
fn truncate_u64(v: u64) -> u64
Truncates a 64-bit unsigned value to this type’s width following C
integer conversion rules, and zero-extends the result back to u64.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".