Type Alias mutringbuf::LocalStackRB

source ·
pub type LocalStackRB<T, const N: usize> = LocalMutRingBuf<StackStorage<T, N>>;
Expand description

A stack-allocated ring buffer usable in local environment.

Aliased Type§

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

Implementations§

source§

impl<T, const N: usize> LocalStackRB<T, N>

source

pub unsafe fn new_zeroed() -> Self

Creates a new local stack-allocated buffer with given capacity and zeroed (uninitialised) elements.

§Safety

The buffer must be then initialised using proper ProdIter methods (*_init ones).

Trait Implementations§

source§

impl<T: Default + Copy, const N: usize> Default for LocalStackRB<T, N>

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl<T, const N: usize> From<[T; N]> for LocalStackRB<T, N>

source§

fn from(value: [T; N]) -> Self

Converts to this type from the input type.