pub enum MemUsageTree {
Bytes(u64),
Node(MemUsageNode),
}Expand description
A snapshot of memory usage of a value,
produced by MemUsageTreeCapture::capture_mem_usage_tree.
Variants§
Bytes(u64)
A leaf node with a known size in bytes.
Node(MemUsageNode)
A node with children (e.g. a struct or collection).
Implementations§
Source§impl MemUsageTree
impl MemUsageTree
Sourcepub fn size_bytes(&self) -> u64
pub fn size_bytes(&self) -> u64
The size (in bytes) of this tree.
Trait Implementations§
Source§impl Default for MemUsageTree
impl Default for MemUsageTree
Auto Trait Implementations§
impl Freeze for MemUsageTree
impl RefUnwindSafe for MemUsageTree
impl Send for MemUsageTree
impl Sync for MemUsageTree
impl Unpin for MemUsageTree
impl UnsafeUnpin for MemUsageTree
impl UnwindSafe for MemUsageTree
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