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

Method try_borrow_mut

aiscript-arena/src/lock.rs:284–286  ·  view source on GitHub ↗
(self, mc: &Mutation<'gc>)

Source from the content-addressed store, hash-verified

282
283 #[inline]
284 pub fn try_borrow_mut(self, mc: &Mutation<'gc>) -> Result<RefMut<'gc, T>, BorrowMutError> {
285 self.unlock(mc).try_borrow_mut()
286 }
287}
288
289// We can't have `T: ?Sized` here because rustc is dumb and doesn't

Callers

nothing calls this directly

Calls 1

unlockMethod · 0.45

Tested by

no test coverage detected