PackedValue

Trait PackedValue 

Source
pub trait PackedValue
where Self: Copy + ShlAssign<usize> + BitOrAssign<Self> + PartialOrd + Debug + LowerHex,
{ const NBITS: usize = _; const NCHARS: usize = _; const NTAGBITS: usize = _; const NCHARBITS: usize = _; const NWIDECHARS: usize = _; // Required methods fn truncating_cast_from(i: usize) -> Self; fn most_significant_byte(self) -> u8; // Provided method fn arbitrary<'a>(u: &mut Unstructured<'a>) -> Result<Self> { ... } }

Provided Associated Constants§

Required Methods§

Provided Methods§

Source

fn arbitrary<'a>(u: &mut Unstructured<'a>) -> Result<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 PackedValue for u8

Source§

impl PackedValue for u16

Source§

impl PackedValue for u32

Source§

impl PackedValue for u64

Source§

impl PackedValue for u128

Implementors§