Function shredder::number_of_tracked_allocations[][src]

pub fn number_of_tracked_allocations() -> usize
Expand description

Returns how many underlying allocations are currently allocated.

Example

use shredder::{number_of_tracked_allocations, Gc};

let data = Gc::new(128);
assert!(number_of_tracked_allocations() > 0);