pub struct MemoryReservation { /* private fields */ }Expand description
A reservation retained alongside an adapter-owned allocation.
Its drop releases the reserved charge. The adapter must deallocate its block first; dropping this guard earlier would misreport the allocation’s lifetime.
Trait Implementations§
Source§impl Debug for MemoryReservation
impl Debug for MemoryReservation
Source§impl Drop for MemoryReservation
impl Drop for MemoryReservation
Auto Trait Implementations§
impl Freeze for MemoryReservation
impl RefUnwindSafe for MemoryReservation
impl Send for MemoryReservation
impl Sync for MemoryReservation
impl Unpin for MemoryReservation
impl UnsafeUnpin for MemoryReservation
impl UnwindSafe for MemoryReservation
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