MCPcopy Create free account
hub / github.com/GraphLite-AI/GraphLite / hash

Method hash

graphlite/src/exec/result.rs:356–369  ·  view source on GitHub ↗
(&self, state: &mut H)

Source from the content-addressed store, hash-verified

354
355impl Hash for Row {
356 fn hash<H: Hasher>(&self, state: &mut H) {
357 // For set operations, hash positionally if available
358 if !self.positional_values.is_empty() {
359 self.positional_values.hash(state);
360 } else {
361 // Fallback to named hashing for backward compatibility
362 let mut items: Vec<_> = self.values.iter().collect();
363 items.sort_by_key(|(k, _)| *k);
364 for (key, value) in items {
365 key.hash(state);
366 value.hash(state);
367 }
368 }
369 }
370}

Callers 4

Calls 2

is_emptyMethod · 0.45
iterMethod · 0.45

Tested by

no test coverage detected