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

Method insert

libs/@local/hashql/core/src/module/universe.rs:317–321  ·  view source on GitHub ↗
(&mut self, universe: Universe, key: K, value: V)

Source from the content-addressed store, hash-verified

315 /// ```
316 #[inline]
317 pub fn insert(&mut self, universe: Universe, key: K, value: V) -> Option<V> {
318 let map = self.of_mut(universe);
319
320 map.insert(key, value)
321 }
322
323 /// Inserts a key-value pair into the specified universe map, but only if the key isn't already
324 /// present.

Callers

nothing calls this directly

Calls 1

of_mutMethod · 0.45

Tested by

no test coverage detected