pub struct Guard { /* private fields */ }Expand description
A guard structure to manage memory allocation and deallocation.
This struct holds a raw pointer to the allocated memory and the layout information used for allocation. It’s responsible for deallocating the memory when dropped, unless the allocation is managed elsewhere.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Guard
impl RefUnwindSafe for Guard
impl !Send for Guard
impl !Sync for Guard
impl Unpin for Guard
impl UnwindSafe for Guard
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