pub struct ReservedMemory<const MAX_ITEM_SIZE: usize> { /* private fields */ }Expand description
An initialized, immutable handle to a slot in the arena.
This type is Send + Sync and can be cheaply cloned. Each clone
increments a logical reference count; when the last clone is dropped,
the stored object’s destructor runs and the slot becomes available for
reuse by the arena.
Trait Implementations§
Source§impl<const MAX_ITEM_SIZE: usize> AsRef<Bytes<MAX_ITEM_SIZE>> for ReservedMemory<MAX_ITEM_SIZE>
impl<const MAX_ITEM_SIZE: usize> AsRef<Bytes<MAX_ITEM_SIZE>> for ReservedMemory<MAX_ITEM_SIZE>
Source§impl<const MAX_ITEM_SIZE: usize> Clone for ReservedMemory<MAX_ITEM_SIZE>
impl<const MAX_ITEM_SIZE: usize> Clone for ReservedMemory<MAX_ITEM_SIZE>
Source§impl<const MAX_ITEM_SIZE: usize> Debug for ReservedMemory<MAX_ITEM_SIZE>
impl<const MAX_ITEM_SIZE: usize> Debug for ReservedMemory<MAX_ITEM_SIZE>
Source§impl<const MAX_ITEM_SIZE: usize> Drop for ReservedMemory<MAX_ITEM_SIZE>
impl<const MAX_ITEM_SIZE: usize> Drop for ReservedMemory<MAX_ITEM_SIZE>
impl<const MAX_ITEM_SIZE: usize> Send for ReservedMemory<MAX_ITEM_SIZE>
impl<const MAX_ITEM_SIZE: usize> Sync for ReservedMemory<MAX_ITEM_SIZE>
Auto Trait Implementations§
impl<const MAX_ITEM_SIZE: usize> Freeze for ReservedMemory<MAX_ITEM_SIZE>
impl<const MAX_ITEM_SIZE: usize> !RefUnwindSafe for ReservedMemory<MAX_ITEM_SIZE>
impl<const MAX_ITEM_SIZE: usize> Unpin for ReservedMemory<MAX_ITEM_SIZE>
impl<const MAX_ITEM_SIZE: usize> UnsafeUnpin for ReservedMemory<MAX_ITEM_SIZE>
impl<const MAX_ITEM_SIZE: usize> !UnwindSafe for ReservedMemory<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