pub struct DArray<T> { /* private fields */ }Implementations§
Source§impl<T> DArray<T>
impl<T> DArray<T>
pub fn dma_addr(&self) -> DmaAddr
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn read(&self, index: usize) -> Option<T>
pub fn set(&mut self, index: usize, value: T)
pub fn iter(&self) -> DArrayIter<'_, T> ⓘ
pub fn copy_from_slice(&mut self, src: &[T])
Sourcepub unsafe fn as_mut_slice(&mut self) -> &mut [T]
pub unsafe fn as_mut_slice(&mut self) -> &mut [T]
§Safety
slice will not auto do cache sync operations.
pub fn as_ptr(&self) -> *mut T
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for DArray<T>
impl<T> !RefUnwindSafe for DArray<T>
impl<T> !Sync for DArray<T>
impl<T> Unpin for DArray<T>where
T: Unpin,
impl<T> !UnwindSafe for DArray<T>
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