pub struct MaskableMem<M> { /* private fields */ }Implementations§
Source§impl<M: CustomDefault> MaskableMem<M>
impl<M: CustomDefault> MaskableMem<M>
Trait Implementations§
Source§impl<M: Clone> Clone for MaskableMem<M>
impl<M: Clone> Clone for MaskableMem<M>
Source§fn clone(&self) -> MaskableMem<M>
fn clone(&self) -> MaskableMem<M>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<M: CustomDefault> CustomDefault for MaskableMem<M>
impl<M: CustomDefault> CustomDefault for MaskableMem<M>
fn custom_default() -> Self
Source§impl<M: Debug> Debug for MaskableMem<M>
impl<M: Debug> Debug for MaskableMem<M>
Source§impl<M: Default> Default for MaskableMem<M>
impl<M: Default> Default for MaskableMem<M>
Source§fn default() -> MaskableMem<M>
fn default() -> MaskableMem<M>
Returns the “default value” for a type. Read more
Source§impl<M> Deref for MaskableMem<M>
impl<M> Deref for MaskableMem<M>
Source§impl<M> DerefMut for MaskableMem<M>
impl<M> DerefMut for MaskableMem<M>
Source§impl<M: MemDevice> MemDevice for MaskableMem<M>
impl<M: MemDevice> MemDevice for MaskableMem<M>
Source§const LEN: usize = M::LEN
const LEN: usize = M::LEN
Length of this MemDevice in bytes. Reads and writes must always be within the device.
Source§fn read_byte_relative(&self, addr: RelativeAddr) -> u8
fn read_byte_relative(&self, addr: RelativeAddr) -> u8
Read the byte at the specified address. Read more
Source§fn write_byte_relative(&mut self, addr: RelativeAddr, value: u8)
fn write_byte_relative(&mut self, addr: RelativeAddr, value: u8)
Write the byte at the sepcified address. Read more
Source§fn read_bytes_relative(&self, addr: RelativeAddr, data: &mut [u8])
fn read_bytes_relative(&self, addr: RelativeAddr, data: &mut [u8])
Read a range of bytes into a slice. The read bytes must not wrap past the end of
the device.
Source§fn write_bytes_relative(&mut self, addr: RelativeAddr, data: &[u8])
fn write_bytes_relative(&mut self, addr: RelativeAddr, data: &[u8])
Write a range of bytes into memory from a slice. The slice must not exceed the
length of the MemDevice.
Source§fn read_relative_into<V>(&self, addr: RelativeAddr, dest: &mut V)where
V: MemValue,
fn read_relative_into<V>(&self, addr: RelativeAddr, dest: &mut V)where
V: MemValue,
Read a typed value from this MemDevice. The value must be fully contained within
this device.
Source§fn read_relative<V>(&self, addr: RelativeAddr) -> V
fn read_relative<V>(&self, addr: RelativeAddr) -> V
Read a typed value from this MemDevice. The value must be fully contained within
this device.
Source§fn write_relative_from<V>(&mut self, addr: RelativeAddr, source: &V)where
V: MemValue,
fn write_relative_from<V>(&mut self, addr: RelativeAddr, source: &V)where
V: MemValue,
Write a typed value into this MemDevice. The value must fit fully within the
device.
Source§fn write_relative<V>(&mut self, addr: RelativeAddr, val: V)where
V: MemValue,
fn write_relative<V>(&mut self, addr: RelativeAddr, val: V)where
V: MemValue,
Write a typed value into this MemDevice. The value must fit fully within the
device.
Source§impl<M: PartialEq> PartialEq for MaskableMem<M>
impl<M: PartialEq> PartialEq for MaskableMem<M>
Source§impl<M: RootMemDevice> RootMemDevice for MaskableMem<M>
impl<M: RootMemDevice> RootMemDevice for MaskableMem<M>
Source§fn read_into<V>(&self, addr: u16, dest: &mut V)where
V: MemValue,
fn read_into<V>(&self, addr: u16, dest: &mut V)where
V: MemValue,
Read a typed value from this MemDevice. The value must be fully contained within
this device.
Source§fn read<V>(&self, addr: u16) -> V
fn read<V>(&self, addr: u16) -> V
Read a typed value from this MemDevice. The value must be fully contained within
this device.
Source§fn write_from<V>(&mut self, addr: u16, source: &V)where
V: MemValue,
fn write_from<V>(&mut self, addr: u16, source: &V)where
V: MemValue,
Write a typed value into this MemDevice. The value must fit fully within the
device.
Source§fn write<V>(&mut self, addr: u16, val: V)where
V: MemValue,
fn write<V>(&mut self, addr: u16, val: V)where
V: MemValue,
Write a typed value into this MemDevice. The value must fit fully within the
device.
Source§fn read_bytes(&self, addr: u16, data: &mut [u8])
fn read_bytes(&self, addr: u16, data: &mut [u8])
Read a range of bytes, wrapping at the ends of memory.
Source§fn write_byte(&mut self, addr: u16, val: u8)
fn write_byte(&mut self, addr: u16, val: u8)
Write a single byte to memory.
Source§fn write_bytes(&mut self, addr: u16, data: &[u8])
fn write_bytes(&mut self, addr: u16, data: &[u8])
Write a range of bytes, wrapping at the ends of memory.
impl<M: Eq> Eq for MaskableMem<M>
impl<M> StructuralPartialEq for MaskableMem<M>
Auto Trait Implementations§
impl<M> Freeze for MaskableMem<M>where
M: Freeze,
impl<M> RefUnwindSafe for MaskableMem<M>where
M: RefUnwindSafe,
impl<M> Send for MaskableMem<M>where
M: Send,
impl<M> Sync for MaskableMem<M>where
M: Sync,
impl<M> Unpin for MaskableMem<M>where
M: Unpin,
impl<M> UnwindSafe for MaskableMem<M>where
M: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more