MCPcopy Create free account
hub / github.com/aiscriptdev/aiscript / new

Method new

aiscript-arena/src/dynamic_roots.rs:36–43  ·  view source on GitHub ↗

Creates a new, empty root set.

(mc: &Mutation<'gc>)

Source from the content-addressed store, hash-verified

34impl<'gc> DynamicRootSet<'gc> {
35 /// Creates a new, empty root set.
36 pub fn new(mc: &Mutation<'gc>) -> Self {
37 DynamicRootSet(Gc::new(
38 mc,
39 Inner {
40 slots: Rc::new(RefCell::new(Slots::new(mc.metrics().clone()))),
41 },
42 ))
43 }
44
45 /// Puts a root inside this root set.
46 ///

Callers

nothing calls this directly

Calls 3

DynamicRootSetClass · 0.85
cloneMethod · 0.45
metricsMethod · 0.45

Tested by

no test coverage detected