pub trait HashTable {
// Required methods
fn calc(&self, field_name: &str) -> u32;
fn find(&self, hash: u32) -> String;
fn add(&mut self, field_name: &str) -> u32;
}Expand description
Trait for hash table implementations
Required Methods§
Implementors§
impl HashTable for FileHashTable
Implementation of the HashTable trait for FileHashTable
This allows FileHashTable to be used wherever a HashTable is expected, providing methods to calculate hashes, find field names by hash, and add new field names to the lookup table