MCPcopy Index your code
hub / github.com/aiscriptdev/aiscript / set

Function set

aiscript-arena/src/types.rs:309–314  ·  view source on GitHub ↗
(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

Calls 2

getMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected