Trait RegisterValue

Source
pub trait RegisterValue:
    'static
    + Into<u64>
    + Clone
    + FromBytes
    + IntoBytes
    + Send
    + Sync
    + Copy
    + BitOr<Self, Output = Self>
    + BitAnd<Self, Output = Self>
    + Not<Output = Self>
    + LowerHex {
    // Provided methods
    fn get_byte(&self, offset: usize) -> u8 { ... }
    fn set_bits(&mut self, mask: Self) { ... }
    fn clear_bits(&mut self, mask: Self) { ... }
}
Expand description

RegisterValue trait should be satisfied by register value types.

Provided Methods§

Source

fn get_byte(&self, offset: usize) -> u8

Source

fn set_bits(&mut self, mask: Self)

Source

fn clear_bits(&mut self, mask: 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 RegisterValue for u8

Source§

impl RegisterValue for u16

Source§

impl RegisterValue for u32

Source§

impl RegisterValue for u64

Implementors§