Trait 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)

Implementors§

Source§

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

Source§

type Value = T