Creates a new, empty root set.
(mc: &Mutation<'gc>)
| 34 | impl<'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 | /// |
nothing calls this directly
no test coverage detected