InlineStorage

Type Alias InlineStorage 

Source
pub type InlineStorage<T, const C: usize> = [MaybeUninit<T>; C];
Expand description

Shorthand for [MaybeUninit<T>; C] for use with generic data structures.

Trait Implementations§

Source§

impl<T, const C: usize> Storage<ArrayLayout<T>> for InlineStorage<T, C>

Source§

fn get_ptr(&self) -> *const u8

Extracts a pointer to the beginning of the memory block. Read more
Source§

fn get_mut_ptr(&mut self) -> *mut u8

Extracts a mutable pointer to the beginning of the memory block. Read more
Source§

fn capacity(&self) -> usize

Returns the maximum number of items the memory block can hold. Read more