[−][src]Trait alloc_wg::alloc::DeallocRef
Associated Types
type BuildAlloc: BuildAllocRef<Ref = Self>
Required methods
fn get_build_alloc(&mut self) -> Self::BuildAlloc
unsafe fn dealloc(&mut self, ptr: NonNull<u8>, layout: NonZeroLayout)
Safety
ptr
must denote a block of memory currently allocated via this allocatorlayout
must fit that block of memory- the alignment of the
layout
must match the alignment used to allocate that block of memory