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

Method borrow_mut

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

Source from the content-addressed store, hash-verified

277 #[track_caller]
278 #[inline]
279 pub fn borrow_mut(self, mc: &Mutation<'gc>) -> RefMut<'gc, T> {
280 self.unlock(mc).borrow_mut()
281 }
282
283 #[inline]
284 pub fn try_borrow_mut(self, mc: &Mutation<'gc>) -> Result<RefMut<'gc, T>, BorrowMutError> {

Callers 15

stashMethod · 0.45
dropMethod · 0.45
cloneMethod · 0.45
do_collection_innerMethod · 0.45
dropMethod · 0.45
barrierMethod · 0.45
traceMethod · 0.45
resurrectMethod · 0.45
random_seedFunction · 0.45
random_floatFunction · 0.45
random_intFunction · 0.45
random_uniformFunction · 0.45

Calls 1

unlockMethod · 0.45

Tested by

no test coverage detected