Struct rb_allocator::RbAllocator
source · [−]pub struct RbAllocator;
Trait Implementations
sourceimpl GlobalAlloc for RbAllocator
impl GlobalAlloc for RbAllocator
sourceunsafe fn alloc(&self, layout: Layout) -> *mut u8
unsafe fn alloc(&self, layout: Layout) -> *mut u8
Allocate memory as described by the given layout
. Read more
sourceunsafe fn alloc_zeroed(&self, layout: Layout) -> *mut u8
unsafe fn alloc_zeroed(&self, layout: Layout) -> *mut u8
Behaves like alloc
, but also ensures that the contents
are set to zero before being returned. Read more
Auto Trait Implementations
impl RefUnwindSafe for RbAllocator
impl Send for RbAllocator
impl Sync for RbAllocator
impl Unpin for RbAllocator
impl UnwindSafe for RbAllocator
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more