MCPcopy Index your code
hub / github.com/RustPython/RustPython / inner

Method inner

crates/stdlib/src/_sqlite3.rs:1677–1683  ·  view source on GitHub ↗
(&self, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

1675 }
1676
1677 fn inner(&self, vm: &VirtualMachine) -> PyResult<PyMappedMutexGuard<'_, CursorInner>> {
1678 let guard = self.inner.lock();
1679 Self::check_cursor_state(guard.as_ref(), vm)?;
1680 Ok(PyMutexGuard::map(guard, |x| unsafe {
1681 x.as_mut().unwrap_unchecked()
1682 }))
1683 }
1684
1685 /// Check if cursor is valid without retaining the lock.
1686 /// Use this when you only need to verify the cursor state but don't need to modify it.

Callers 15

executeMethod · 0.45
executemanyMethod · 0.45
lastrowidMethod · 0.45
rowcountMethod · 0.45
descriptionMethod · 0.45
nextMethod · 0.45
py_newMethod · 0.45
readMethod · 0.45
writeMethod · 0.45
tellMethod · 0.45
seekMethod · 0.45
__enter__Method · 0.45

Calls 5

ErrClass · 0.50
lockMethod · 0.45
as_refMethod · 0.45
as_mutMethod · 0.45
to_ownedMethod · 0.45

Tested by

no test coverage detected