pub struct MiscAllocation { /* private fields */ }
Expand description
An allocation of memory using the misc allocator.
The allocator used for this memory can be modified or accessed with
crate::alloc::set_misc_allocator()
and
crate::alloc::get_misc_allocator()
if the "alloc"
feature is
enabled.
The backing memory will be deallocated by the misc allocator upon drop
unless this is wrapped with a ManuallyDrop
.
Implementations§
Trait Implementations§
Source§impl Debug for MiscAllocation
impl Debug for MiscAllocation
Source§impl Drop for MiscAllocation
impl Drop for MiscAllocation
impl Send for MiscAllocation
Auto Trait Implementations§
impl Freeze for MiscAllocation
impl RefUnwindSafe for MiscAllocation
impl !Sync for MiscAllocation
impl Unpin for MiscAllocation
impl UnwindSafe for MiscAllocation
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