pub struct RpMalloc;Expand description
rpmalloc global allocator wrapper
Implementations§
Source§impl RpMalloc
impl RpMalloc
Sourcepub fn global_stats() -> rpmalloc_global_statistics_t
pub fn global_stats() -> rpmalloc_global_statistics_t
Retrieve global allocation stats.
Some of the fields in these will only be used if the statistics feature is enabled
Sourcepub fn thread_stats() -> rpmalloc_thread_statistics_t
pub fn thread_stats() -> rpmalloc_thread_statistics_t
Retrieve allocation stats for the current thread.
Some of the fields in these will only be used if the statistics feature is enabled
Trait Implementations§
Source§impl GlobalAlloc for RpMalloc
impl GlobalAlloc for RpMalloc
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 moreSource§unsafe 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 moreAuto Trait Implementations§
impl Freeze for RpMalloc
impl RefUnwindSafe for RpMalloc
impl Send for RpMalloc
impl Sync for RpMalloc
impl Unpin for RpMalloc
impl UnwindSafe for RpMalloc
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