Struct rsim::processor::elements::memory::IOMemory[][src]

pub struct IOMemory {
    range: Range<usize>,
    value: Option<u64>,
    halt_on_write: bool,
}

I/O Memory Defines an address range of a single u32. Reads from this address return 0, Writes to this address throw ProgramHaltedException::ResultReturned.

Fields

range: Range<usize>value: Option<u64>halt_on_write: bool

Implementations

impl IOMemory[src]

pub fn return_address(addr: usize, halt_on_write: bool) -> IOMemory[src]

Build an I/O memory with the specified address

Trait Implementations

impl Memory<u64> for IOMemory[src]

impl<TData> MemoryOf<TData, u64> for IOMemory where
    TData: Into<u64> + Default,
    dyn Memory: MemoryOf<TData>, 
[src]

Auto Trait Implementations

impl RefUnwindSafe for IOMemory

impl Send for IOMemory

impl Sync for IOMemory

impl Unpin for IOMemory

impl UnwindSafe for IOMemory

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.