MCPcopy Create free account
hub / github.com/GraphiteEditor/Graphite / cache_hash

Method cache_hash

node-graph/graph-craft/src/proto.rs:103–114  ·  view source on GitHub ↗
(&self, state: &mut H)

Source from the content-addressed store, hash-verified

101
102impl CacheHash for ConstructionArgs {
103 fn cache_hash<H: std::hash::Hasher>(&self, state: &mut H) {
104 core::mem::discriminant(self).hash(state);
105 match self {
106 Self::Nodes(nodes) => {
107 for node in nodes {
108 node.hash(state);
109 }
110 }
111 Self::Value(value) => value.cache_hash(state),
112 Self::Inline(inline) => inline.hash(state),
113 }
114 }
115}
116
117impl ConstructionArgs {

Callers 2

eqMethod · 0.45
stable_node_idMethod · 0.45

Calls 1

hashMethod · 0.45

Tested by

no test coverage detected