[][src]Trait mju_bits::storage::BitFieldAccess

pub trait BitFieldAccess: Sealed {
    fn get_bitfield(&self, mask: Self, shift: u32) -> Self;
fn set_bitfield(&mut self, mask: Self, shift: u32, value: Self); }

Bitfield access functionality

Note: this trait is sealed against implementation outside this crate. This restriction will be lifted once the API has stabilized.

Required methods

fn get_bitfield(&self, mask: Self, shift: u32) -> Self

Returns a copy of self masked by mask and shifted right by shift

fn set_bitfield(&mut self, mask: Self, shift: u32, value: Self)

Shifts value left by shift and replaces bits in self using mask.

Loading content...

Implementors

impl BitFieldAccess for u8[src]

impl BitFieldAccess for u16[src]

impl BitFieldAccess for u32[src]

impl BitFieldAccess for u64[src]

impl BitFieldAccess for usize[src]

Loading content...