Trait Width32BitPortion

Source
pub trait Width32BitPortion
where Self: Sized,
{ // Required methods fn from_low_high_u16(low: u16, high: u16) -> Self; fn low_u16(self) -> u16; fn high_u16(self) -> u16; // Provided methods fn from_high_low_u16(high: u16, low: u16) -> Self { ... } fn from_low_high_i16(low: i16, high: i16) -> Self { ... } fn from_high_low_i16(high: i16, low: i16) -> Self { ... } fn low_i16(self) -> i16 { ... } fn high_i16(self) -> i16 { ... } }
Expand description

A trait concerned with the least significant 32 bits of integer types.

Required Methods§

Source

fn from_low_high_u16(low: u16, high: u16) -> Self

Source

fn low_u16(self) -> u16

Source

fn high_u16(self) -> u16

Provided Methods§

Source

fn from_high_low_u16(high: u16, low: u16) -> Self

Source

fn from_low_high_i16(low: i16, high: i16) -> Self

Source

fn from_high_low_i16(high: i16, low: i16) -> Self

Source

fn low_i16(self) -> i16

Source

fn high_i16(self) -> i16

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.

Implementations on Foreign Types§

Source§

impl Width32BitPortion for i32

Source§

fn from_low_high_u16(low: u16, high: u16) -> Self

Source§

fn low_u16(self) -> u16

Source§

fn high_u16(self) -> u16

Source§

impl Width32BitPortion for isize

Source§

fn from_low_high_u16(low: u16, high: u16) -> Self

Source§

fn low_u16(self) -> u16

Source§

fn high_u16(self) -> u16

Source§

impl Width32BitPortion for u32

Source§

fn from_low_high_u16(low: u16, high: u16) -> Self

Source§

fn low_u16(self) -> u16

Source§

fn high_u16(self) -> u16

Source§

impl Width32BitPortion for usize

Source§

fn from_low_high_u16(low: u16, high: u16) -> Self

Source§

fn low_u16(self) -> u16

Source§

fn high_u16(self) -> u16

Source§

impl Width32BitPortion for LPARAM

Source§

fn from_low_high_u16(low: u16, high: u16) -> Self

Source§

fn low_u16(self) -> u16

Source§

fn high_u16(self) -> u16

Source§

impl Width32BitPortion for LRESULT

Source§

fn from_low_high_u16(low: u16, high: u16) -> Self

Source§

fn low_u16(self) -> u16

Source§

fn high_u16(self) -> u16

Source§

impl Width32BitPortion for WPARAM

Source§

fn from_low_high_u16(low: u16, high: u16) -> Self

Source§

fn low_u16(self) -> u16

Source§

fn high_u16(self) -> u16

Implementors§