Trait intel_spi::Io

source ·
pub trait Io {
    type Value: Copy + PartialEq + BitAnd<Output = Self::Value> + BitOr<Output = Self::Value> + Not<Output = Self::Value>;

    // Required methods
    fn read(&self) -> Self::Value;
    fn write(&mut self, value: Self::Value);

    // Provided methods
    fn readf(&self, flags: Self::Value) -> bool { ... }
    fn writef(&mut self, flags: Self::Value, value: bool) { ... }
}

Required Associated Types§

source

type Value: Copy + PartialEq + BitAnd<Output = Self::Value> + BitOr<Output = Self::Value> + Not<Output = Self::Value>

Required Methods§

source

fn read(&self) -> Self::Value

source

fn write(&mut self, value: Self::Value)

Provided Methods§

source

fn readf(&self, flags: Self::Value) -> bool

source

fn writef(&mut self, flags: Self::Value, value: bool)

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T> Io for Mmio<T>
where T: Copy + PartialEq + BitAnd<Output = T> + BitOr<Output = T> + Not<Output = T>,

§

type Value = T