pub trait HeapSize {
// Required method
fn heap_size(&self) -> usize;
}Expand description
Trait for calculating the heap size of an object’s owned data. Arc’s and references are not included in the sum by default. Set CAIRO_HEAPSIZE_COUNT_SHARED=1 to include shared allocations (may double-count).