(&mut self, id: KId<M>, c: KConst<M>)
| 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 | } |