1 2 3 4 5
pub trait IO { fn read(&self, addr: usize, byte: &mut u8); fn write(&mut self, addr: usize, byte: u8); fn capacity(&self) -> usize; }