Trait flex_alloc::vec::config::VecConfigSpawn

source ·
pub trait VecConfigSpawn<T>: VecConfig {
    // Required method
    fn vec_try_spawn(
        buf: &Self::Buffer<T>,
        capacity: Self::Index,
        exact: bool,
    ) -> Result<Self::Buffer<T>, StorageError>;
}

Required Methods§

source

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

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T, C: VecConfig> VecConfigSpawn<T> for C
where Self::Buffer<T>: VecBufferSpawn,