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

Method values

crates/stdlib/src/contextvars.rs:225–228  ·  view source on GitHub ↗
(zelf: PyRef<Self>)

Source from the content-addressed store, hash-verified

223 // TODO: wrong return type
224 #[pymethod]
225 fn values(zelf: PyRef<Self>) -> Vec<PyObjectRef> {
226 let vars = zelf.borrow_vars();
227 vars.values().map(|value| value.to_owned()).collect()
228 }
229
230 // TODO: wrong return type
231 #[pymethod]

Callers

nothing calls this directly

Calls 4

borrow_varsMethod · 0.80
collectMethod · 0.80
mapMethod · 0.45
to_ownedMethod · 0.45

Tested by

no test coverage detected