pub trait Width16BitPortionwhere
Self: Sized,{
// Required methods
fn from_low_high_u8(low: u8, high: u8) -> Self;
fn low_u8(self) -> u8;
fn high_u8(self) -> u8;
// Provided method
fn from_high_low_u8(high: u8, low: u8) -> Self { ... }
}
Expand description
A trait concerned with the least significant 16 bits of integer types.
Required Methods§
fn from_low_high_u8(low: u8, high: u8) -> Self
fn low_u8(self) -> u8
fn high_u8(self) -> u8
Provided Methods§
fn from_high_low_u8(high: u8, low: u8) -> Self
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.