Struct hashconsing::HConsign
source · Expand description
The consign storing the actual hash consed elements as HConsed
s.
Implementations
sourceimpl<T: Hash + Eq + Clone> HConsign<T>
impl<T: Hash + Eq + Clone> HConsign<T>
sourcepub fn with_capacity(capacity: usize) -> Self
pub fn with_capacity(capacity: usize) -> Self
Creates an empty consign with a capacity.
sourcepub fn fold<Acc, F>(&self, init: Acc, f: F) -> Accwhere
F: FnMut(Acc, HConsed<T>) -> Acc,
pub fn fold<Acc, F>(&self, init: Acc, f: F) -> Accwhere
F: FnMut(Acc, HConsed<T>) -> Acc,
Fold on the elements stored in the consign.
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for HConsign<T>where
T: RefUnwindSafe,
impl<T> Send for HConsign<T>where
T: Send + Sync,
impl<T> Sync for HConsign<T>where
T: Send + Sync,
impl<T> Unpin for HConsign<T>where
T: Unpin,
impl<T> UnwindSafe for HConsign<T>where
T: UnwindSafe + RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more