Trait flex_alloc::vec::buffer::VecBufferNew

source ·
pub trait VecBufferNew: VecBufferSpawn {
    const NEW: Self;

    // Required method
    fn vec_try_new(
        capacity: Self::Index,
        exact: bool,
    ) -> Result<Self, StorageError>;
}

Required Associated Constants§

source

const NEW: Self

Required Methods§

source

fn vec_try_new(capacity: Self::Index, exact: bool) -> Result<Self, StorageError>

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<B> VecBufferNew for B
where B: VecBufferSpawn + AllocHandleNew<Meta = VecData<Self::Data, Self::Index>>,

source§

const NEW: Self = Self::NEW

source§

impl<T, const N: usize> VecBufferNew for InlineBuffer<T, N>

source§

const NEW: Self = _