Trait flex_alloc::vec::config::VecConfigNew

source ·
pub trait VecConfigNew<T>: VecConfigSpawn<T> {
    const NEW: Self::Buffer<T>;

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

Required Associated Constants§

source

const NEW: Self::Buffer<T>

Required Methods§

source

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

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T, C: VecConfigSpawn<T>> VecConfigNew<T> for C
where Self::Buffer<T>: VecBufferNew,

source§

const NEW: Self::Buffer<T> = <Self::Buffer<T>>::NEW