pub(crate) enum Deallocation {
Standard(Layout),
Custom(Arc<dyn Allocation>, usize),
}
Expand description
Mode of deallocating memory regions
Variants§
Standard(Layout)
An allocation using std::alloc
Custom(Arc<dyn Allocation>, usize)
An allocation from an external source like the FFI interface
Deallocation will happen on Allocation::drop
The size of the allocation is tracked here separately only
for memory usage reporting via Array::get_buffer_memory_size
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Deallocation
impl RefUnwindSafe for Deallocation
impl Send for Deallocation
impl Sync for Deallocation
impl Unpin for Deallocation
impl UnwindSafe for Deallocation
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