Type Alias ringbuf::storage::Slice

source ·
pub type Slice<T> = Owning<[MaybeUninit<T>]>;

Aliased Type§

struct Slice<T> { /* private fields */ }

Trait Implementations§

source§

impl<T> Storage for Slice<T>

§

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