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
The address that was free()
ed.
Trait Implementations§
source§impl Debug for AllocationDetails
impl Debug for AllocationDetails
source§impl<'de> Deserialize<'de> for AllocationDetails
impl<'de> Deserialize<'de> for AllocationDetails
source§fn 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