Struct w806_pac::generic::ArrayProxy
source · [−]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
sourceimpl<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> 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more