(&self, state: &mut H)
| 101 | |
| 102 | impl 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 | |
| 117 | impl ConstructionArgs { |
no test coverage detected