Function
set
(pcell: &Cell<*const T>, tag: usize)
Source from the content-addressed store, hash-verified
| 307 | |
| 308 | #[inline(always)] |
| 309 | pub(super) fn set<const MASK: usize, T>(pcell: &Cell<*const T>, tag: usize) { |
| 310 | check_mask!(T, MASK); |
| 311 | let ptr = pcell.get(); |
| 312 | let ptr = ptr.map_addr(|addr| (addr & !MASK) | (tag & MASK)); |
| 313 | pcell.set(ptr) |
| 314 | } |
| 315 | |
| 316 | #[inline(always)] |
| 317 | pub(super) fn set_bool<const MASK: usize, T>(pcell: &Cell<*const T>, value: bool) { |
Callers
nothing calls this directly
Tested by
no test coverage detected