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

Method intern_partial

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

Interns a partial representation and returns the complete object. # Returns The complete reconstructed object of type `T`. # Examples ``` # use hashql_core::{heap::Heap, intern::{InternMap, Decompose, Interned}, id::{HasId, Id, newtype}}; # newtype!(struct ValueId(u32 is 0..=0xFFFF_FF00)); # #[derive(Debug, PartialEq, Eq, Hash)] # struct Value { # id: ValueId, # value: i32, # } # impl

(&self, partial: T::Partial)

Source from the content-addressed store, hash-verified

419 /// assert_eq!(obj.id(), obj2.id());
420 /// ```
421 pub fn intern_partial(&self, partial: T::Partial) -> T {
422 self.intern_parts(None, partial)
423 }
424
425 /// Provisions a new unique ID without interning any value.
426 ///

Callers 8

basic_interningFunction · 0.80
lookup_by_idFunction · 0.80
recursive_structuresFunction · 0.80
hash_collisionsFunction · 0.80
lifetime_persistenceFunction · 0.80
into_typeMethod · 0.80
intern_typeMethod · 0.80

Calls 1

intern_partsMethod · 0.80

Tested by 6

basic_interningFunction · 0.64
lookup_by_idFunction · 0.64
recursive_structuresFunction · 0.64
hash_collisionsFunction · 0.64
lifetime_persistenceFunction · 0.64