Type Alias ringbuf::storage::Array

source ·
pub type Array<T, const N: usize> = Owning<[MaybeUninit<T>; N]>;

Aliased Type§

struct Array<T, const N: usize> { /* private fields */ }

Trait Implementations§

source§

impl<T, const N: usize> Storage for Array<T, N>

§

type Item = T

Stored item.
source§

fn as_mut_ptr(&self) -> *mut MaybeUninit<T>

Return mutable pointer to the beginning of the storage items.
source§

fn len(&self) -> usize

Length of the storage.
source§

fn is_empty(&self) -> bool

source§

fn as_ptr(&self) -> *const MaybeUninit<Self::Item>

Return pointer to the beginning of the storage items.
source§

unsafe fn slice(&self, range: Range<usize>) -> &[MaybeUninit<Self::Item>]

Returns a mutable slice of storage in specified range. Read more
source§

unsafe fn slice_mut( &self, range: Range<usize>, ) -> &mut [MaybeUninit<Self::Item>]

Returns a mutable slice of storage in specified range. Read more