MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / binding_id_hex

Function binding_id_hex

atomic-core/src/pristine/txn/write/bindings.rs:6–8  ·  view source on GitHub ↗
(id: &[u8; 32])

Source from the content-addressed store, hash-verified

4use crate::pristine::{BindingMutTxnT, BindingStoreOutcome, BindingTxnT};
5
6fn binding_id_hex(id: &[u8; 32]) -> String {
7 id.iter().map(|byte| format!("{byte:02x}")).collect()
8}
9
10impl BindingTxnT for WriteTxn<'_> {
11 fn get_binding_bytes(&self, id: &[u8; 32]) -> PristineResult<Option<Vec<u8>>> {

Callers 1

insert_binding_bytesMethod · 0.70

Calls 2

collectMethod · 0.45
iterMethod · 0.45

Tested by

no test coverage detected