MCPcopy Create free account
hub / github.com/argumentcomputer/ix / hash_substring

Function hash_substring

crates/common/src/env.rs:604–609  ·  view source on GitHub ↗
(ss: &Substring, hasher: &mut blake3::Hasher)

Source from the content-addressed store, hash-verified

602 Int::NegSucc(n) => {
603 hasher.update(&[1]);
604 hasher.update(&n.to_le_bytes());
605 },
606 }
607}
608
609/// A substring reference: a string together with start and stop byte positions.
610#[derive(Debug, PartialEq, Eq, Clone, Hash)]
611pub struct Substring {
612 /// The underlying string.

Callers 2

hash_source_infoFunction · 0.85
hash_syntaxFunction · 0.85

Calls 1

as_bytesMethod · 0.80

Tested by

no test coverage detected