pub trait U32Ext {
// Required methods
fn contains(self, flag: u32) -> bool;
fn lower_u16(self) -> u16;
fn higher_u16(self) -> u16;
fn set_lower_u16(&mut self, lower: u16);
fn set_higher_u16(&mut self, higher: u16);
}Expand description
Convenience extension methods for u32 (for bit handling).
Required Methods§
Sourcefn higher_u16(self) -> u16
fn higher_u16(self) -> u16
Obtains the higher 16 bits.
Sourcefn set_lower_u16(&mut self, lower: u16)
fn set_lower_u16(&mut self, lower: u16)
Sets the lower 16 bits.
Sourcefn set_higher_u16(&mut self, higher: u16)
fn set_higher_u16(&mut self, higher: u16)
Sets the higher 16 bits.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".