pub struct EnifAllocator;Expand description
Allocator implementation that forwards all allocation calls to Erlang’s allocator. Allows the memory usage to be tracked by the BEAM.
Trait Implementations§
Source§impl GlobalAlloc for EnifAllocator
impl GlobalAlloc for EnifAllocator
Source§unsafe fn alloc(&self, layout: Layout) -> *mut u8
unsafe fn alloc(&self, layout: Layout) -> *mut u8
Allocates memory as described by the given
layout. Read moreAuto Trait Implementations§
impl Freeze for EnifAllocator
impl RefUnwindSafe for EnifAllocator
impl Send for EnifAllocator
impl Sync for EnifAllocator
impl Unpin for EnifAllocator
impl UnwindSafe for EnifAllocator
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