Look up the index for a given hash. Returns `None` if the hash is not in the table. This is an O(1) operation using the internal `HashMap`. # Arguments `hash` - The 32-byte hash to look up. # Examples ```rust use atomic_core::change::format_v3::HashDedupTable; let self_hash = [0u8; 32]; let table = HashDedupTable::new(self_hash); assert_eq!(table.lookup(&self_hash), Some(0)); assert_eq!(tab
(&self, hash: &[u8; 32])
| 300 | /// assert_eq!(table.lookup(&[99u8; 32]), None); |
| 301 | /// ``` |
| 302 | pub fn lookup(&self, hash: &[u8; 32]) -> Option<HashIndex> { |
| 303 | self.index_map.get(hash).copied() |
| 304 | } |
| 305 | |
| 306 | /// Look up the index for a hash, returning an error if not found. |
| 307 | /// |