Trait hirpdag_hashconsing::Reference
source · [−]pub trait Reference<D> where
D: Hash + Eq + Debug, {
fn new(data: D) -> Self;
fn strong_deref(ptr: &Self) -> &D;
fn strong_clone(ptr: &Self) -> Self;
fn strong_ptr_eq(a: &Self, b: &Self) -> bool;
}
Expand description
Strong reference handle type.
Required Methods
fn strong_deref(ptr: &Self) -> &D
fn strong_deref(ptr: &Self) -> &D
Borrow the referenced data.
fn strong_clone(ptr: &Self) -> Self
fn strong_clone(ptr: &Self) -> Self
Clone the reference handle. The new resulting handle will refer to the same data.
fn strong_ptr_eq(a: &Self, b: &Self) -> bool
fn strong_ptr_eq(a: &Self, b: &Self) -> bool
Check if two reference handles refer to the same data.