MCPcopy Create free account
hub / github.com/hashintel/hash / provision

Method provision

libs/@local/hashql/core/src/intern/map.rs:463–465  ·  view source on GitHub ↗

Provisions a new unique ID without interning any value. This is useful when creating recursive data structures, where an ID needs to be known before the full structure can be created. # Returns A provisioned ID that can be used with `intern_provisioned`. # Examples ``` # use hashql_core::{heap::Heap, intern::{InternMap, Decompose, Interned, Provisioned}, id::{HasId, Id, newtype}}; # newtype!(

(&self)

Source from the content-addressed store, hash-verified

461 /// assert_eq!(obj.id(), id.value());
462 /// ```
463 pub fn provision(&self) -> Provisioned<T::Id> {
464 Provisioned(self.next_id())
465 }
466
467 /// Interns a partial representation with a previously provisioned ID.
468 ///

Callers 5

internMethod · 0.45
provisioningFunction · 0.45
recursive_structuresFunction · 0.45
setup_localsMethod · 0.45

Calls 2

ProvisionedClass · 0.85
next_idMethod · 0.80

Tested by 3

provisioningFunction · 0.36
recursive_structuresFunction · 0.36