pub trait HostAllocatorExt: HostAllocator {
// Provided method
fn allocate_typed<T>(&self, len: usize) -> VortexResult<WritableHostBuffer> { ... }
}Expand description
Extension methods for HostAllocators.
Provided Methods§
Sourcefn allocate_typed<T>(&self, len: usize) -> VortexResult<WritableHostBuffer>
fn allocate_typed<T>(&self, len: usize) -> VortexResult<WritableHostBuffer>
Allocate host memory for len elements of T using Alignment::of::<T>().
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.