[][src]Struct probe_rs::Memory

pub struct Memory { /* fields omitted */ }

Methods

impl Memory[src]

pub fn new(memory: impl MemoryInterface + 'static) -> Self[src]

pub fn new_dummy() -> Self[src]

pub fn memory_interface(&self) -> Ref<dyn MemoryInterface>[src]

pub fn memory_interface_mut(&mut self) -> RefMut<dyn MemoryInterface>[src]

pub fn read32(&self, address: u32) -> Result<u32, Error>[src]

pub fn read8(&self, address: u32) -> Result<u8, Error>[src]

pub fn read_block32(&self, address: u32, data: &mut [u32]) -> Result<(), Error>[src]

pub fn read_block8(&self, address: u32, data: &mut [u8]) -> Result<(), Error>[src]

pub fn write32(&self, addr: u32, data: u32) -> Result<(), Error>[src]

pub fn write8(&self, addr: u32, data: u8) -> Result<(), Error>[src]

pub fn write_block32(&self, addr: u32, data: &[u32]) -> Result<(), Error>[src]

pub fn write_block8(&self, addr: u32, data: &[u8]) -> Result<(), Error>[src]

Trait Implementations

impl Clone for Memory[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]

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.