pub struct Bytes<const MAX_ITEM_SIZE: usize> { /* private fields */ }Expand description
The raw storage for an item, potentially uninitialized.
Aligned to 64 bytes (typical cache-line size) to prevent false sharing when different threads access adjacent slots concurrently.
Trait Implementations§
Auto Trait Implementations§
impl<const MAX_ITEM_SIZE: usize> Freeze for Bytes<MAX_ITEM_SIZE>
impl<const MAX_ITEM_SIZE: usize> RefUnwindSafe for Bytes<MAX_ITEM_SIZE>
impl<const MAX_ITEM_SIZE: usize> Send for Bytes<MAX_ITEM_SIZE>
impl<const MAX_ITEM_SIZE: usize> Sync for Bytes<MAX_ITEM_SIZE>
impl<const MAX_ITEM_SIZE: usize> Unpin for Bytes<MAX_ITEM_SIZE>
impl<const MAX_ITEM_SIZE: usize> UnsafeUnpin for Bytes<MAX_ITEM_SIZE>
impl<const MAX_ITEM_SIZE: usize> UnwindSafe for Bytes<MAX_ITEM_SIZE>
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