pub struct AllocInfo {
pub alloc: usize,
pub dealloc: usize,
pub realloc: usize,
pub bytes_alloc: usize,
pub bytes_dealloc: usize,
}Expand description
Information about allocations by the allocator.
Fields§
§alloc: usizeNumber of calls to alloc
dealloc: usizeNumber of calls to dealloc
realloc: usizeNumber of calls to realloc
bytes_alloc: usizeTotal bytes allocated
bytes_dealloc: usizeTotal bytes deallocated
Implementations§
Source§impl AllocInfo
impl AllocInfo
pub const fn new() -> Self
pub fn relative_to(&self, origin: &Self) -> Self
pub fn after_call(&self, layout: Layout, action: AllocAction) -> Self
Trait Implementations§
impl Copy for AllocInfo
impl Eq for AllocInfo
impl StructuralPartialEq for AllocInfo
Auto Trait Implementations§
impl Freeze for AllocInfo
impl RefUnwindSafe for AllocInfo
impl Send for AllocInfo
impl Sync for AllocInfo
impl Unpin for AllocInfo
impl UnwindSafe for AllocInfo
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