[][src]Trait pir_8_emu::ReadWritable

pub trait ReadWritable {
    fn was_read(&self) -> bool;
fn was_written(&self) -> bool;
fn reset_rw(&mut self); }

Generic trait for objects that can track whether they've been read from and/or written to.

Required methods

fn was_read(&self) -> bool

Check if this object was read from.

fn was_written(&self) -> bool

Check if this object was written to.

fn reset_rw(&mut self)

Reset the R/W marking of this object.

Loading content...

Implementors

impl ReadWritable for GeneralPurposeRegister[src]

impl<T: Num + Unsigned + PrimInt> ReadWritable for SpecialPurposeRegister<T>[src]

Loading content...