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

Object Safety§

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§