pub struct CacheAligned<T>(/* private fields */);Expand description
Cache-line aligned wrapper for better memory access patterns.
64-byte alignment matches typical x86_64 cache line size, reducing cache misses and eliminating false sharing in multi-threaded scenarios.
Implementations§
Trait Implementations§
Source§impl<T> Deref for CacheAligned<T>
impl<T> Deref for CacheAligned<T>
Auto Trait Implementations§
impl<T> Freeze for CacheAligned<T>where
T: Freeze,
impl<T> RefUnwindSafe for CacheAligned<T>where
T: RefUnwindSafe,
impl<T> Send for CacheAligned<T>where
T: Send,
impl<T> Sync for CacheAligned<T>where
T: Sync,
impl<T> Unpin for CacheAligned<T>where
T: Unpin,
impl<T> UnwindSafe for CacheAligned<T>where
T: 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