pub struct AllocationInfo {
pub total_size: u64,
pub count: u64,
pub average_size: f64,
pub stack_trace: Vec<StackFrame>,
}
Expand description
Allocation information
Fields§
§total_size: u64
Total size in bytes
count: u64
Number of allocations
average_size: f64
Average size in bytes
stack_trace: Vec<StackFrame>
Stack trace of allocation
Trait Implementations§
Source§impl Clone for AllocationInfo
impl Clone for AllocationInfo
Source§fn clone(&self) -> AllocationInfo
fn clone(&self) -> AllocationInfo
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 AllocationInfo
impl Debug for AllocationInfo
Source§impl<'de> Deserialize<'de> for AllocationInfo
impl<'de> Deserialize<'de> for AllocationInfo
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
Auto Trait Implementations§
impl Freeze for AllocationInfo
impl RefUnwindSafe for AllocationInfo
impl Send for AllocationInfo
impl Sync for AllocationInfo
impl Unpin for AllocationInfo
impl UnwindSafe for AllocationInfo
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