MCPcopy Create free account
hub / github.com/TheAlgorithms/Rust / add_key

Method add_key

src/hashing/hashing_traits.rs:34–56  ·  view source on GitHub ↗

Note that `key` must be no longer than `KEY_BYTES`. According to the RFC, if it is so, you should replace it with its hash. We do not do this automatically due to fear of `DIGEST_BYTES` not being the same as `KEY_BYTES` or even being longer than it.

(&mut self, key: &[u8])

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 5

cmpMethod · 0.45
lenMethod · 0.45
iter_mutMethod · 0.45
iterMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected