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

Method keys

crates/stdlib/src/_sqlite3.rs:2212–2218  ·  view source on GitHub ↗
(&self, _vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

2210 impl Row {
2211 #[pymethod]
2212 fn keys(&self, _vm: &VirtualMachine) -> PyResult<Vec<PyObjectRef>> {
2213 Ok(self
2214 .description
2215 .iter()
2216 .map(|x| x.downcast_ref::<PyTuple>().unwrap().as_slice()[0].clone())
2217 .collect())
2218 }
2219
2220 fn subscript(&self, needle: &PyObject, vm: &VirtualMachine) -> PyResult {
2221 if let Some(i) = needle.downcast_ref::<PyInt>() {

Callers 2

list_dialectsFunction · 0.45

Calls 6

collectMethod · 0.80
mapMethod · 0.45
iterMethod · 0.45
cloneMethod · 0.45
as_sliceMethod · 0.45
unwrapMethod · 0.45

Tested by 1