BitField

Trait BitField 

Source
pub trait BitField<'a> {
    type Size: Default + Into<u128> + TryFrom<u128> + Copy + Debug;

    const LAYOUT: Layout<'a> = _;

    // Required method
    fn value(&self) -> Self::Size;

    // Provided methods
    fn iter(&self) -> Iter<'a, Self::Size>  { ... }
    fn significants(&self) -> Significants<'a, Self::Size>  { ... }
    fn reserved(&self) -> Reserved<'a, Self::Size>  { ... }
}
Expand description

Trait for Bit Field data

Provided Associated Constants§

Source

const LAYOUT: Layout<'a> = _

Required Associated Types§

Required Methods§

Source

fn value(&self) -> Self::Size

Provided Methods§

Source

fn iter(&self) -> Iter<'a, Self::Size>

Source

fn significants(&self) -> Significants<'a, Self::Size>

Source

fn reserved(&self) -> Reserved<'a, Self::Size>

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.

Implementors§