(&self)
| 137 | |
| 138 | impl<R: for<'gc> Rootable<'gc>> Clone for DynamicRoot<R> { |
| 139 | fn clone(&self) -> Self { |
| 140 | if let Some(slots) = self.slots.upgrade() { |
| 141 | slots.borrow_mut().inc(self.index); |
| 142 | } |
| 143 | |
| 144 | Self { |
| 145 | ptr: self.ptr, |
| 146 | slots: self.slots.clone(), |
| 147 | index: self.index, |
| 148 | } |
| 149 | } |
| 150 | } |
| 151 | |
| 152 | impl<R: for<'gc> Rootable<'gc>> DynamicRoot<R> { |
no test coverage detected