(self, mc: &Mutation<'gc>)
| 170 | /// Shorthand for [`Gc::write`]`(mc, self).`[`unlock()`](Write::unlock). |
| 171 | #[inline] |
| 172 | pub fn unlock(self, mc: &Mutation<'gc>) -> &'gc T::Unlocked { |
| 173 | Gc::write(mc, self); |
| 174 | // SAFETY: see doc-comment. |
| 175 | unsafe { self.as_ref().unlock_unchecked() } |
| 176 | } |
| 177 | } |
| 178 | |
| 179 | impl<'gc, T: ?Sized + 'gc> Gc<'gc, T> { |
no test coverage detected