Type Definition RefLeak
hirpdag_hashconsing
type RefLeak<D> = ManuallyDrop<Box<D>>;
impl<D> Reference<D> for RefLeak<D> where D: Hash + Eq + Debug,
pub fn new(data: D) -> Self
Move the data into a new strong reference.
pub fn strong_deref(ptr: &Self) -> &D
Borrow the referenced data.
pub fn strong_clone(ptr: &Self) -> Self
Clone the reference handle. The new resulting handle will refer to the same data.
pub fn strong_ptr_eq(a: &Self, b: &Self) -> bool
Check if two reference handles refer to the same data.