pub struct AtomicVectorPool { /* private fields */ }Expand description
Atomic vector pool for lock-free vector operations (ADR-001)
Provides a pool of pre-allocated vectors that can be acquired and released without locking, ideal for high-throughput batch operations.
Implementations§
Source§impl AtomicVectorPool
impl AtomicVectorPool
Sourcepub fn new(dimensions: usize, initial_size: usize, max_size: usize) -> Self
pub fn new(dimensions: usize, initial_size: usize, max_size: usize) -> Self
Create a new atomic vector pool
Sourcepub fn acquire(&self) -> PooledVector<'_>
pub fn acquire(&self) -> PooledVector<'_>
Acquire a vector from the pool (or allocate new one)
Sourcepub fn stats(&self) -> VectorPoolStats
pub fn stats(&self) -> VectorPoolStats
Get pool statistics
Sourcepub fn dimensions(&self) -> usize
pub fn dimensions(&self) -> usize
Get dimensions
Auto Trait Implementations§
impl !Freeze for AtomicVectorPool
impl RefUnwindSafe for AtomicVectorPool
impl Send for AtomicVectorPool
impl Sync for AtomicVectorPool
impl Unpin for AtomicVectorPool
impl UnwindSafe for AtomicVectorPool
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more