pub struct WHConsed<T> { /* private fields */ }Expand description
Weak version of HConsed.
Implementations§
Source§impl<T> WHConsed<T>
impl<T> WHConsed<T>
Sourcepub fn to_hconsed(&self) -> Option<HConsed<T>>
pub fn to_hconsed(&self) -> Option<HConsed<T>>
Turns a weak hashconsed thing in a hashconsed thing.
Sourcepub fn as_weak_ref(&self) -> &Weak<T>
pub fn as_weak_ref(&self) -> &Weak<T>
A reference to the underlying weak reference.
Trait Implementations§
Source§impl<T> Ord for WHConsed<T>
impl<T> Ord for WHConsed<T>
Source§impl<T> PartialOrd for WHConsed<T>
impl<T> PartialOrd for WHConsed<T>
impl<T> Eq for WHConsed<T>
Auto Trait Implementations§
impl<T> Freeze for WHConsed<T>
impl<T> RefUnwindSafe for WHConsed<T>where
T: RefUnwindSafe,
impl<T> Send for WHConsed<T>
impl<T> Sync for WHConsed<T>
impl<T> Unpin for WHConsed<T>
impl<T> UnwindSafe for WHConsed<T>where
T: RefUnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more