pub trait MemoryAccessByte<T> {
    // Required methods
    fn read_byte(addr: u32, state: &T) -> u8;
    fn write_byte(addr: u32, data: u8, state: &mut T);
}
Expand description

A component that can either read or write a byte from a memory address.

Required Methods§

source

fn read_byte(addr: u32, state: &T) -> u8

Returns a byte from the memory address.

source

fn write_byte(addr: u32, data: u8, state: &mut T)

Writes a byte to the memory address.

Object Safety§

This trait is not object safe.

Implementors§