pub struct Merkle<T> { /* private fields */ }
Expand description
A shared instance of T that serializes once, not once per reference.
Unlike a “bare” RcId
, single machine word on modern machines).
In particular, a shared T has a unique ID permitting table-based
indirection, via temporary storage used by serialization and
serialization logic; by contrast, a bare Rc
Implementations§
Trait Implementations§
Source§impl<T> Deref for Merkle<T>
We may deference a (deserialized) Merkle just like an Rc;
below, rely on the invariant that all deserialized Merkle’s
consist of an Rc (along with a unique ID).
impl<T> Deref for Merkle<T>
We may deference a (deserialized) Merkle