pub struct HeapBucket {
pub type_name: &'static str,
pub count: usize,
pub bytes_approx: usize,
}Expand description
One per-type row in HeapSnapshot::buckets.
Fields§
§type_name: &'static strLower-cased name of the ObjTag discriminant
("str", "table", "proto", …).
count: usizeCount of live objects with this tag.
bytes_approx: usizePer-tag byte estimate. Uses core::mem::size_of of the
payload struct as a lower bound — mirrors Heap::bytes’s
“shells only” accounting; embedders that need exact bytes
must instrument allocations themselves.
Trait Implementations§
Source§impl Clone for HeapBucket
impl Clone for HeapBucket
Source§fn clone(&self) -> HeapBucket
fn clone(&self) -> HeapBucket
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for HeapBucket
impl RefUnwindSafe for HeapBucket
impl Send for HeapBucket
impl Sync for HeapBucket
impl Unpin for HeapBucket
impl UnsafeUnpin for HeapBucket
impl UnwindSafe for HeapBucket
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