(mc: &Mutation<'gc>, gc: Self)
| 205 | /// unrestricted mutation on the held type or any of its directly held fields. |
| 206 | #[inline] |
| 207 | pub fn write(mc: &Mutation<'gc>, gc: Self) -> &'gc Write<T> { |
| 208 | unsafe { |
| 209 | mc.backward_barrier(Gc::erase(gc), None); |
| 210 | // SAFETY: the write barrier stays valid until the end of the current callback. |
| 211 | Write::assume(gc.as_ref()) |
| 212 | } |
| 213 | } |
| 214 | |
| 215 | /// Returns true if two `Gc`s point to the same allocation. |
| 216 | /// |
no test coverage detected