(&self)
| 371 | /// The template contains a hash table for by-name lookup. |
| 372 | impl<'a> constant_hash::Table<&'a str> for Template { |
| 373 | fn len(&self) -> usize { |
| 374 | self.hash_table.len() |
| 375 | } |
| 376 | |
| 377 | fn key(&self, idx: usize) -> Option<&'a str> { |
| 378 | let e = self.hash_table[idx] as usize; |