Struct hashconsing::HashConsign [] [src]

pub struct HashConsign<T: Hash + Eq + Clone> { /* fields omitted */ }

The consign storing the actual hash consed elements as HConseds.

Methods

impl<T: Hash + Eq + Clone> HashConsign<T>
[src]

Creates an empty consign.

Creates an empty consign with a capacity.

Fold on the elements stored in the consign.

The number of elements stored, mostly for testing.

Trait Implementations

impl<T: Hash + Eq + Clone> Display for HashConsign<T> where T: Hash + Display
[src]

Formats the value using the given formatter.

impl<'a, T: Hash + Eq + Clone> HConser<T> for &'a mut HashConsign<T>
[src]

Hash conses something and returns the hash consed version.