Struct hashconsing::HashConsign
[−]
[src]
pub struct HashConsign<T: Hash + Eq + Clone> { /* fields omitted */ }
The consign storing the actual hash consed elements as HConsed
s.
Methods
impl<T: Hash + Eq + Clone> HashConsign<T>
[src]
fn empty() -> Self
Creates an empty consign.
fn with_capacity(capacity: usize) -> Self
Creates an empty consign with a capacity.
fn fold<Acc, F>(&self, f: F, init: Acc) -> Acc where F: Fn(Acc, HConsed<T>) -> Acc
Fold on the elements stored in the consign.
fn len(&self) -> usize
The number of elements stored, mostly for testing.