pub trait Alloc {
// Required method
fn alloc<T>(&self, capacity: usize) -> Vec<T>;
}Expand description
Storage allocation trait.
This is used by various methods on TensorBase with an _in suffix,
which allow the caller to control the allocation of the data buffer for
the returned owned tensor.
Required Methods§
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.