Struct d1_pac::generic::ArrayProxy
source · pub struct ArrayProxy<T, const COUNT: usize, const STRIDE: usize> { /* private fields */ }
Expand description
Access an array of COUNT
items of type T
with the items STRIDE
bytes
apart. This is a zero-sized-type. No objects of this type are ever
actually created, it is only a convenience for wrapping pointer arithmetic.
There is no safe way to produce items of this type. Unsafe code can produce references by pointer casting. It is up to the unsafe code doing that, to ensure that the memory really is backed by appropriate content.
Typically, this is used for accessing hardware registers.
Implementations§
source§impl<T, const C: usize, const S: usize> ArrayProxy<T, C, S>
impl<T, const C: usize, const S: usize> ArrayProxy<T, C, S>
Trait Implementations§
Auto Trait Implementations§
impl<T, const COUNT: usize, const STRIDE: usize> Freeze for ArrayProxy<T, COUNT, STRIDE>
impl<T, const COUNT: usize, const STRIDE: usize> RefUnwindSafe for ArrayProxy<T, COUNT, STRIDE>where
T: RefUnwindSafe,
impl<T, const COUNT: usize, const STRIDE: usize> Send for ArrayProxy<T, COUNT, STRIDE>where
T: Send,
impl<T, const COUNT: usize, const STRIDE: usize> Sync for ArrayProxy<T, COUNT, STRIDE>where
T: Sync,
impl<T, const COUNT: usize, const STRIDE: usize> Unpin for ArrayProxy<T, COUNT, STRIDE>where
T: Unpin,
impl<T, const COUNT: usize, const STRIDE: usize> UnwindSafe for ArrayProxy<T, COUNT, STRIDE>where
T: 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