Struct forth3::dictionary::SharedDict
source · pub(crate) struct SharedDict<T: 'static>(NonNull<Dictionary<T>>);
Expand description
A handle to a shared, atomically reference counted dictionary allocation.
The contents of this dictionary are frozen and can no longer be mutated.
However, a SharedDict
can be inexpensively cloned by incrementing its
reference count.
When a VM is forked into a child VM, its current OwnedDict
is
transformed into a SharedDict
, which both its new OwnedDict
and the
child VM’s OwnedDict
will reference as their parents.
Tuple Fields§
§0: NonNull<Dictionary<T>>