pub struct BatchBuf<K, V> { /* private fields */ }Expand description
Zero-allocation batch buffer: fixed-size MaybeUninit array, reused in-place. No Mutex, no Vec, no heap allocation on the hot path.
Implementations§
Trait Implementations§
impl<K: Send, V: Send> Send for BatchBuf<K, V>
impl<K: Sync, V: Sync> Sync for BatchBuf<K, V>
Auto Trait Implementations§
impl<K, V> Freeze for BatchBuf<K, V>
impl<K, V> RefUnwindSafe for BatchBuf<K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Unpin for BatchBuf<K, V>
impl<K, V> UnsafeUnpin for BatchBuf<K, V>where
K: UnsafeUnpin,
V: UnsafeUnpin,
impl<K, V> UnwindSafe for BatchBuf<K, V>where
K: UnwindSafe,
V: UnwindSafe,
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