Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NodeDB-Lab/nodedb
/ hex_encode
Function
hex_encode
nodedb/src/control/planner/wasm/runtime.rs:108–110 ·
view source on GitHub ↗
(bytes: &[u8])
Source
from the content-addressed store, hash-verified
106
}
107
108
fn hex_encode(bytes: &[u8]) -> String {
109
bytes.iter().map(|b| format!(
"{b:02x}"
)).collect()
110
}
111
112
#[cfg(test)]
113
mod tests {
Callers
1
sha256_hex
Function · 0.70
Calls
2
collect
Method · 0.80
iter
Method · 0.45
Tested by
no test coverage detected