[−][src]Trait alloc_wg::alloc::BuildAllocRef
Associated Types
type Ref: DeallocRef<BuildAlloc = Self>
Required methods
#[must_use]
unsafe fn build_alloc_ref(
&mut self,
ptr: NonNull<u8>,
layout: Option<NonZeroLayout>
) -> Self::Ref
&mut self,
ptr: NonNull<u8>,
layout: Option<NonZeroLayout>
) -> Self::Ref
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
Implementations on Foreign Types
impl BuildAllocRef for System
[src]
type Ref = Self
unsafe fn build_alloc_ref(
&mut self,
_ptr: NonNull<u8>,
_layout: Option<NonZeroLayout>
) -> Self::Ref
[src]
&mut self,
_ptr: NonNull<u8>,
_layout: Option<NonZeroLayout>
) -> Self::Ref
Implementors
impl BuildAllocRef for Global
[src]
type Ref = Self
unsafe fn build_alloc_ref(
&mut self,
_ptr: NonNull<u8>,
_layout: Option<NonZeroLayout>
) -> Self::Ref
[src]
&mut self,
_ptr: NonNull<u8>,
_layout: Option<NonZeroLayout>
) -> Self::Ref
impl<A: BuildAllocRef> BuildAllocRef for AbortAlloc<A>
[src]
type Ref = AbortAlloc<A::Ref>
unsafe fn build_alloc_ref(
&mut self,
ptr: NonNull<u8>,
layout: Option<NonZeroLayout>
) -> Self::Ref
[src]
&mut self,
ptr: NonNull<u8>,
layout: Option<NonZeroLayout>
) -> Self::Ref