[][src]Trait alloc_wg::alloc::ReallocRef

pub trait ReallocRef: Sized {
    type BuildRealloc: BuildRealloc<ReallocRef = Self>;
    type Error;
    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>; }

Associated Types

type BuildRealloc: BuildRealloc<ReallocRef = Self>

type Error

Loading content...

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>

Loading content...

Implementations on Foreign Types

impl ReallocRef for Global[src]

type BuildRealloc = Self

type Error = AllocErr

impl ReallocRef for System[src]

type BuildRealloc = Self

type Error = AllocErr

Loading content...

Implementors

impl<A: ReallocRef> ReallocRef for AbortAlloc<A>[src]

type BuildRealloc = AbortAlloc<A::BuildRealloc>

type Error = !

Loading content...