Collect list elements as LeanShared handles for cross-thread use. The caller should have already MT-marked the parent list via `LeanShared::new`, so `lean_mark_mt` on each element is a single `lean_is_st` check (fast no-op).
(list: LeanList<LeanBorrowed<'_>>)
| 590 | |
| 591 | /// Global cache for Names, shared across all threads. |
| 592 | #[derive(Default)] |
| 593 | pub struct GlobalCache { |
| 594 | names: DashMap<*mut lean_ffi::include::lean_object, Name>, |
| 595 | } |
| 596 | |
| 597 | impl GlobalCache { |