pub enum AllocationDetails {
Alloc {
bytes: usize,
addr: usize,
},
Realloc {
bytes: usize,
old_addr: usize,
new_addr: usize,
},
Free {
old_addr: usize,
},
}
Expand description
Information about allocations.
Variants
Alloc
The amount and location of a new allocation
Realloc
The new size of a reallocation from old_addr
to new_addr
.
Free
Fields
old_addr: usize
The address that was free()
ed.
Trait Implementations
sourceimpl Debug for AllocationDetails
impl Debug for AllocationDetails
sourceimpl<'de> Deserialize<'de> for AllocationDetails
impl<'de> Deserialize<'de> for AllocationDetails
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for AllocationDetails
impl Send for AllocationDetails
impl Sync for AllocationDetails
impl Unpin for AllocationDetails
impl UnwindSafe for AllocationDetails
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