[−][src]Trait alloc_wg::alloc::ReallocRef
Associated Types
type BuildRealloc: BuildRealloc<ReallocRef = Self>
type Error
Required methods
fn get_build_realloc(&mut self) -> Self::BuildRealloc
unsafe fn realloc(
&mut self,
ptr: NonNull<u8>,
layout: NonZeroLayout,
new_size: usize
) -> Result<NonNull<u8>, Self::Error>
&mut self,
ptr: NonNull<u8>,
layout: NonZeroLayout,
new_size: usize
) -> Result<NonNull<u8>, Self::Error>
Implementations on Foreign Types
impl ReallocRef for Global[src]
type BuildRealloc = Self
type Error = AllocErr
fn get_build_realloc(&mut self) -> Self::BuildRealloc[src]
unsafe fn realloc(
&mut self,
ptr: NonNull<u8>,
layout: NonZeroLayout,
new_size: usize
) -> Result<NonNull<u8>, Self::Error>[src]
&mut self,
ptr: NonNull<u8>,
layout: NonZeroLayout,
new_size: usize
) -> Result<NonNull<u8>, Self::Error>
impl ReallocRef for System[src]
type BuildRealloc = Self
type Error = AllocErr
fn get_build_realloc(&mut self) -> Self::BuildRealloc[src]
unsafe fn realloc(
&mut self,
ptr: NonNull<u8>,
layout: NonZeroLayout,
new_size: usize
) -> Result<NonNull<u8>, Self::Error>[src]
&mut self,
ptr: NonNull<u8>,
layout: NonZeroLayout,
new_size: usize
) -> Result<NonNull<u8>, Self::Error>
Implementors
impl<A: ReallocRef> ReallocRef for AbortAlloc<A>[src]
type BuildRealloc = AbortAlloc<A::BuildRealloc>
type Error = !
fn get_build_realloc(&mut self) -> Self::BuildRealloc[src]
unsafe fn realloc(
&mut self,
ptr: NonNull<u8>,
layout: NonZeroLayout,
new_size: usize
) -> Result<NonNull<u8>, Self::Error>[src]
&mut self,
ptr: NonNull<u8>,
layout: NonZeroLayout,
new_size: usize
) -> Result<NonNull<u8>, Self::Error>