Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ with_ref
Method
with_ref
crates/vm/src/function/buffer.rs:46–51 ·
view source on GitHub ↗
(&self, f: F)
Source
from the content-addressed store, hash-verified
44
}
45
46
pub fn with_ref<F, R>(&self, f: F) -> R
47
where
48
F: FnOnce(&[u8]) -> R,
49
{
50
f(&self.borrow_buf())
51
}
52
53
pub const fn len(&self) -> usize {
54
self.0.desc.len
Callers
15
py_to_js
Function · 0.80
pack_into
Function · 0.80
unpack
Function · 0.80
unpack_from
Function · 0.80
next
Method · 0.80
pack_into
Method · 0.80
unpack
Method · 0.80
unpack_from
Method · 0.80
hexlify
Function · 0.80
unhexlify
Function · 0.80
crc32
Function · 0.80
crc_hqx
Function · 0.80
Calls
4
f
Function · 0.50
borrow_buf
Method · 0.45
borrow_buf_mut
Method · 0.45
as_bytes
Method · 0.45
Tested by
no test coverage detected