MCPcopy Create free account
hub / github.com/argumentcomputer/ix / intern_univ_dedup

Function intern_univ_dedup

crates/kernel/src/env.rs:703–712  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

701 /// seeding, `prims()` would derive primitives from an empty env and
702 /// return synthetic `@<hex>` KIds that wouldn't match the real names
703 /// later faulted in.
704 ///
705 /// `Primitives<M>` is large (~2 KB), so the error path is allowed to
706 /// be big — the caller hands ownership in and only retrieves it on
707 /// failure.
708 #[allow(clippy::result_large_err)]
709 pub fn set_prims(&mut self, p: Primitives<M>) -> Result<(), Primitives<M>> {
710 self.prims.set(p)
711 }
712
713 pub fn has_prims(&self) -> bool {
714 self.prims.get().is_some()
715 }

Callers

nothing calls this directly

Calls 1

intern_univMethod · 0.45

Tested by

no test coverage detected