DefinitionRef
This class provides a reference to a definition, utilizing a weak reference to its underlying value to prevent reference cycles in recursive structures. It manages a shared name and a thread-safe, single-assignment lock to ensure the definition is initialized and accessed efficiently.
Attributes
| Attribute | Type | Description |
|---|---|---|
| reference | Arc< String > | A shared pointer to the unique identifier string for the definition. |
| value | Weak< OnceLock< T > > | A weak reference to the definition used to avoid reference cycles when recursive definitions are used. |
| name | Arc< LazyName > | A shared pointer to the lazily evaluated name associated with this definition reference. |
Constructor
Signature
def DefinitionRef()