[−][src]Struct riscv_emu_rust::memory::Memory
Emulates main memory.
Implementations
impl Memory
[src]
pub fn new() -> Self
[src]
Creates a new Memory
pub fn init(&mut self, capacity: u64)
[src]
pub fn read_byte(&self, address: u64) -> u8
[src]
pub fn read_halfword(&self, address: u64) -> u16
[src]
pub fn read_word(&self, address: u64) -> u32
[src]
pub fn read_doubleword(&self, address: u64) -> u64
[src]
pub fn read_bytes(&self, address: u64, width: u64) -> u64
[src]
pub fn write_byte(&mut self, address: u64, value: u8)
[src]
pub fn write_halfword(&mut self, address: u64, value: u16)
[src]
pub fn write_word(&mut self, address: u64, value: u32)
[src]
pub fn write_doubleword(&mut self, address: u64, value: u64)
[src]
pub fn write_bytes(&mut self, address: u64, value: u64, width: u64)
[src]
pub fn validate_address(&self, address: u64) -> bool
[src]
Auto Trait Implementations
impl RefUnwindSafe for Memory
impl Send for Memory
impl Sync for Memory
impl Unpin for Memory
impl UnwindSafe for Memory
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,