Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ to_vec
Method
to_vec
crates/stdlib/src/compression.rs:101–103 ·
view source on GitHub ↗
(&self)
Source
from the content-addressed store, hash-verified
99
self.data1.is_empty()
100
}
101
pub fn to_vec(&self) -> Vec<u8> {
102
[self.data1, self.data2].concat()
103
}
104
pub fn chunk(&self) -> &'a [u8] {
105
self.data1.get(..CHUNKSIZE).unwrap_or(self.data1)
106
}
Callers
15
main
Function · 0.80
_msg_callback
Function · 0.80
set_ecdh_curve
Method · 0.80
_set_alpn_protocols
Method · 0.80
extract_password_bytes
Method · 0.80
id
Method · 0.80
share
Method · 0.80
inet_pton
Function · 0.80
fcntl
Function · 0.80
ioctl
Function · 0.80
move_
Method · 0.80
read
Method · 0.80
Calls
1
concat
Method · 0.45
Tested by
1
miri_test_drop
Function · 0.64