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

Method try_borrow

aiscript-arena/src/lock.rs:273–275  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

271
272 #[inline]
273 pub fn try_borrow(self) -> Result<Ref<'gc, T>, BorrowError> {
274 RefLock::try_borrow(self.as_ref())
275 }
276
277 #[track_caller]
278 #[inline]

Callers 1

fmtMethod · 0.80

Calls 1

as_refMethod · 0.45

Tested by

no test coverage detected