pub struct BTreeStringTable<'a> { /* private fields */ }
Expand description
Default implementation just maintains a btree keyed on a 32-bit fxhash value
Implementations§
source§impl<'a> BTreeStringTable<'a>
impl<'a> BTreeStringTable<'a>
Trait Implementations§
source§impl<'a> StringTable<'a, u64> for BTreeStringTable<'a>
impl<'a> StringTable<'a, u64> for BTreeStringTable<'a>
source§fn add(&mut self, value: &str) -> u64
fn add(&mut self, value: &str) -> u64
Add a new value to the string table. Returns the u32 hash value
of the entry. If the entry already exists within the table, then
this operation is idempotent, but the hash value is still returned.