Struct hashconsing::HConsign

source ·
pub struct HConsign<T: Hash + Eq + Clone> { /* private fields */ }
Expand description

The consign storing the actual hash consed elements as HConseds.

Implementations

Creates an empty consign.

Creates an empty consign with a capacity.

Fold on the elements stored in the consign.

Fold on the elements stored in the consign, result version.

The number of elements stored, mostly for testing.

True if the consign is empty.

Trait Implementations

Formats the value using the given formatter. Read more

Hash conses something and returns the hash consed version.

Creates a HConsed element.

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.

Converts the given value to a String. Read more
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.