pub trait VecConfigSpawn<T>: VecConfig {
// Required method
fn buffer_try_spawn(
buf: &Self::Buffer<T>,
capacity: Self::Index,
exact: bool,
) -> Result<Self::Buffer<T>, StorageError>;
}
Expand description
Support creation of new Vec
buffer instances from an existing instance.
Required Methods§
Sourcefn buffer_try_spawn(
buf: &Self::Buffer<T>,
capacity: Self::Index,
exact: bool,
) -> Result<Self::Buffer<T>, StorageError>
fn buffer_try_spawn( buf: &Self::Buffer<T>, capacity: Self::Index, exact: bool, ) -> Result<Self::Buffer<T>, StorageError>
Try to create a new buffer instance with a given capacity.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.