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§
Required Methods§
fn vec_try_new( capacity: Self::Index, exact: bool, ) -> Result<Self::Buffer<T>, StorageError>
Object Safety§
This trait is not object safe.