[−][src]Trait heaparray::naive_rc::ref_counters::RefCounter
Utility struct that handles reference counting.
Required methods
fn new(data: T) -> Self
Returns a new instance of this reference counter
fn decrement(&self) -> usize
Decrements the reference counter by one and returns its current value
fn increment(&self) -> usize
Increments the reference counter by one and returns its current value