pub struct TwoByteMemory<'a, T, U, V>{ /* private fields */ }
Implementations§
Source§impl<'a, T, U, V> TwoByteMemory<'a, T, U, V>where
T: IndexMut<V>,
U: Into<V> + From<u8> + WrappingAdd<Output = U> + Copy,
T::Output: DoublablePrecision + Copy,
impl<'a, T, U, V> TwoByteMemory<'a, T, U, V>where
T: IndexMut<V>,
U: Into<V> + From<u8> + WrappingAdd<Output = U> + Copy,
T::Output: DoublablePrecision + Copy,
pub fn new(data: &'a mut T) -> Self
pub fn read( &self, address: U, ) -> <T::Output as DoublablePrecision>::DoublePrecision
pub fn write( &mut self, address: U, value: <T::Output as DoublablePrecision>::DoublePrecision, )
Auto Trait Implementations§
impl<'a, T, U, V> Freeze for TwoByteMemory<'a, T, U, V>
impl<'a, T, U, V> RefUnwindSafe for TwoByteMemory<'a, T, U, V>
impl<'a, T, U, V> Send for TwoByteMemory<'a, T, U, V>
impl<'a, T, U, V> Sync for TwoByteMemory<'a, T, U, V>
impl<'a, T, U, V> Unpin for TwoByteMemory<'a, T, U, V>
impl<'a, T, U, V> !UnwindSafe for TwoByteMemory<'a, T, U, V>
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