pub struct CfsAllocator;Expand description
A GlobalAlloc backed by libc’s thread-safe heap.
Trait Implementations§
Source§impl GlobalAlloc for CfsAllocator
impl GlobalAlloc for CfsAllocator
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 CfsAllocator
impl RefUnwindSafe for CfsAllocator
impl Send for CfsAllocator
impl Sync for CfsAllocator
impl Unpin for CfsAllocator
impl UnsafeUnpin for CfsAllocator
impl UnwindSafe for CfsAllocator
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