Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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))]
416
impl VecBuffer {
417
pub fn take(&self) -> Vec<u8> {
418
core::mem::take(&mut self.data.lock())
419
}
420
}
421
422
impl From<Vec<u8>> for VecBuffer {
Callers
15
send
Method · 0.45
request_animation_frame
Function · 0.45
set_owner
Method · 0.45
close
Method · 0.45
detach
Method · 0.45
close
Method · 0.45
cancel_dump_traceback_later
Function · 0.45
make_cancelled_error_impl
Method · 0.45
schedule_callbacks
Method · 0.45
awaited_by_add
Method · 0.45
emit_next_token
Function · 0.45
flush
Method · 0.45
Calls
2
take
Function · 0.85
lock
Method · 0.45
Tested by
no test coverage detected