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> Clone for BTreeStringTable<'a>
impl<'a> Clone for BTreeStringTable<'a>
source§fn clone(&self) -> BTreeStringTable<'a>
fn clone(&self) -> BTreeStringTable<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a> StringTable<'a, u32> for BTreeStringTable<'a>
impl<'a> StringTable<'a, u32> for BTreeStringTable<'a>
source§fn add(&mut self, value: &str) -> u32
fn add(&mut self, value: &str) -> u32
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.
source§fn contains(&self, value: &str) -> bool
fn contains(&self, value: &str) -> bool
Checks whether a given value is already stored within the table