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

Fields

bytes: usize
addr: usize

The amount and location of a new allocation

Realloc

Fields

bytes: usize
old_addr: usize
new_addr: usize

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

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.