()
| 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 | } |
nothing calls this directly
no test coverage detected