(&self)
| 34 | |
| 35 | impl Key { |
| 36 | pub fn id(&self) -> Id { |
| 37 | let mut hasher = DefaultHasher::new(); |
| 38 | self.hash(&mut hasher); |
| 39 | Id(hasher.finish()) |
| 40 | } |
| 41 | } |
| 42 | // Creates a unique key whose value does not matter. . |
| 43 | // Can be used in the last mile and as shadowed unique keys |