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

Method take

crates/vm/src/protocol/buffer.rs:417–419  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

415#[pyclass(flags(BASETYPE, DISALLOW_INSTANTIATION))]
416impl VecBuffer {
417 pub fn take(&self) -> Vec<u8> {
418 core::mem::take(&mut self.data.lock())
419 }
420}
421
422impl From<Vec<u8>> for VecBuffer {

Callers 15

sendMethod · 0.45
request_animation_frameFunction · 0.45
set_ownerMethod · 0.45
closeMethod · 0.45
detachMethod · 0.45
closeMethod · 0.45
schedule_callbacksMethod · 0.45
awaited_by_addMethod · 0.45
emit_next_tokenFunction · 0.45
flushMethod · 0.45

Calls 2

takeFunction · 0.85
lockMethod · 0.45

Tested by

no test coverage detected