Struct avr::mem::Space [−][src]
A memory space.
Implementations
impl Space
[src]
pub fn new(size: usize) -> Self
[src]
pub fn set_u8(&mut self, addr: usize, val: u8) -> Result<(), Error>
[src]
pub fn set_u16(&mut self, addr: usize, val: u16) -> Result<(), Error>
[src]
pub fn get_u8(&self, addr: usize) -> Result<u8, Error>
[src]
pub fn get_u16(&self, addr: usize) -> Result<u16, Error>
[src]
pub fn bytes<'a>(&'a self) -> Iter<'a, u8>
[src]
pub fn bytes_mut<'a>(&'a mut self) -> IterMut<'a, u8>
[src]
pub fn load<I>(&mut self, bytes: I) where
I: Iterator<Item = u8>,
[src]
I: Iterator<Item = u8>,
Auto Trait Implementations
impl RefUnwindSafe for Space
[src]
impl Send for Space
[src]
impl Sync for Space
[src]
impl Unpin for Space
[src]
impl UnwindSafe for Space
[src]
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,
pub 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.
pub 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>,