MCPcopy Index your code
hub / github.com/argumentcomputer/ix / insert

Method insert

crates/kernel/src/env.rs:470–478  ·  view source on GitHub ↗
(&mut self, id: KId<M>, c: KConst<M>)

Source from the content-addressed store, hash-verified

468 self.prims.get().is_some()
469 }
470
471 pub fn get(&self, id: &KId<M>) -> Option<KConst<M>> {
472 self.consts.get(id).cloned()
473 }
474
475 pub fn insert(&mut self, id: KId<M>, c: KConst<M>) {
476 if let Some(marker) = super::primitive::reserved_marker_name(&id.addr) {
477 panic!(
478 "attempted to insert {id} at reserved kernel marker address {marker} ({})",
479 id.addr.hex()
480 );
481 }

Calls 1

reserved_marker_nameFunction · 0.85