pub struct Heap<T> { /* private fields */ }
Expand description

A reference counting container for objects of a given type with automatic garbage collection

Implementations

Create a new Heap of type T.

Push an instance of type T to the heap and return a (usize) reference to it.

Return the value for the given data reference.

Return the value for the given data reference if it exists.

Return the given instance’s reference count.

Increase the given instance’s reference count by one.

Decrease the given instance’s reference count by one.

List the keys to the data on the heap

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.