Trait Width16BitPortion

Source
pub trait Width16BitPortion
where 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§

Source

fn from_low_high_u8(low: u8, high: u8) -> Self

Source

fn low_u8(self) -> u8

Source

fn high_u8(self) -> u8

Provided Methods§

Source

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.

Implementations on Foreign Types§

Source§

impl Width16BitPortion for i16

Source§

fn from_low_high_u8(low: u8, high: u8) -> Self

Source§

fn low_u8(self) -> u8

Source§

fn high_u8(self) -> u8

Source§

impl Width16BitPortion for u16

Source§

fn from_low_high_u8(low: u8, high: u8) -> Self

Source§

fn low_u8(self) -> u8

Source§

fn high_u8(self) -> u8

Implementors§