pub struct SimdMemoryPool { /* private fields */ }Expand description
SIMD-aligned memory pool for vectorized operations
Implementations§
Source§impl SimdMemoryPool
impl SimdMemoryPool
Sourcepub fn new(config: ZerocopyPoolConfig) -> Arc<Self>
pub fn new(config: ZerocopyPoolConfig) -> Arc<Self>
Create a new SIMD memory pool
Sourcepub fn allocate_simd_buffer(self: &Arc<Self>) -> Option<SimdBufferHandle>
pub fn allocate_simd_buffer(self: &Arc<Self>) -> Option<SimdBufferHandle>
Allocate a SIMD buffer from the pool
Sourcepub fn available_simd_count(&self) -> usize
pub fn available_simd_count(&self) -> usize
Get number of available SIMD buffers
Auto Trait Implementations§
impl !Freeze for SimdMemoryPool
impl !RefUnwindSafe for SimdMemoryPool
impl Send for SimdMemoryPool
impl Sync for SimdMemoryPool
impl Unpin for SimdMemoryPool
impl UnwindSafe for SimdMemoryPool
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more