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

Method borrow_vec

crates/vm/src/builtins/list.rs:136–138  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

134 }
135
136 pub fn borrow_vec(&self) -> PyMappedRwLockReadGuard<'_, [PyObjectRef]> {
137 PyRwLockReadGuard::map(self.elements.read(), |v| &**v)
138 }
139
140 pub fn borrow_vec_mut(&self) -> PyRwLockWriteGuard<'_, Vec<PyObjectRef>> {
141 let guard = self.elements.write();

Callers 15

tcsetattrFunction · 0.80
remove_done_callbackMethod · 0.80
schedule_callbacksMethod · 0.80
_callbacksMethod · 0.80
get_future_repr_infoFunction · 0.80
get_task_repr_infoFunction · 0.80
set_alpn_protocolsMethod · 0.80
prep_reraise_starFunction · 0.80
offer_suggestionsFunction · 0.80
serializeMethod · 0.80
execute_instructionMethod · 0.80
unpack_sequenceMethod · 0.80

Calls 1

readMethod · 0.45

Tested by

no test coverage detected