pub enum AllocationEvent {
Alloc {
size: usize,
align: usize,
time: Duration,
ptr: usize,
},
Dealloc {
size: usize,
align: usize,
time: Duration,
ptr: usize,
},
Realloc {
size: usize,
align: usize,
time: Duration,
ptr: usize,
new_size: usize,
new_ptr: usize,
},
}Variants§
Implementations§
Source§impl AllocationEvent
impl AllocationEvent
pub fn time(&self) -> Duration
pub fn allocated_bytes(&self) -> isize
pub fn is_alloc(&self) -> bool
pub fn is_dealloc(&self) -> bool
pub fn is_realloc(&self) -> bool
Trait Implementations§
Source§impl Clone for AllocationEvent
impl Clone for AllocationEvent
Source§fn clone(&self) -> AllocationEvent
fn clone(&self) -> AllocationEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AllocationEvent
impl Debug for AllocationEvent
Source§impl Hash for AllocationEvent
impl Hash for AllocationEvent
Source§impl PartialEq for AllocationEvent
impl PartialEq for AllocationEvent
impl Copy for AllocationEvent
impl Eq for AllocationEvent
impl StructuralPartialEq for AllocationEvent
Auto Trait Implementations§
impl Freeze for AllocationEvent
impl RefUnwindSafe for AllocationEvent
impl Send for AllocationEvent
impl Sync for AllocationEvent
impl Unpin for AllocationEvent
impl UnwindSafe for AllocationEvent
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