Skip to main content

HostAllocatorExt

Trait HostAllocatorExt 

Source
pub trait HostAllocatorExt: HostAllocator {
    // Provided method
    fn allocate_typed<T>(&self, len: usize) -> VortexResult<WritableHostBuffer> { ... }
}
Expand description

Extension methods for HostAllocators.

Provided Methods§

Source

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.

Implementors§