pub struct LibcAlloc;Expand description
Global Allocator which hooks into libc to allocate / free memory.
Trait Implementations§
Source§impl GlobalAlloc for LibcAlloc
Available on target_family=windows only.
impl GlobalAlloc for LibcAlloc
Available on
target_family=windows only.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 LibcAlloc
impl RefUnwindSafe for LibcAlloc
impl Send for LibcAlloc
impl Sync for LibcAlloc
impl Unpin for LibcAlloc
impl UnwindSafe for LibcAlloc
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