pub struct Space { /* private fields */ }
Expand description
A memory space.
Implementations§
Source§impl Space
impl Space
pub fn new(size: usize) -> Self
pub fn set_u8(&mut self, addr: usize, val: u8) -> Result<(), Error>
pub fn set_u16(&mut self, addr: usize, val: u16) -> Result<(), Error>
pub fn get_u8(&self, addr: usize) -> Result<u8, Error>
pub fn get_u16(&self, addr: usize) -> Result<u16, Error>
pub fn bytes<'a>(&'a self) -> Iter<'a, u8>
pub fn bytes_mut<'a>(&'a mut self) -> IterMut<'a, u8>
pub fn load<I>(&mut self, bytes: I)
Auto Trait Implementations§
impl Freeze for Space
impl RefUnwindSafe for Space
impl Send for Space
impl Sync for Space
impl Unpin for Space
impl UnwindSafe for Space
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