pub struct QNameTable { /* private fields */ }Expand description
Chained hash table that deduplicates QNameAtom values.
Index 0 is always EMPTY_QNAME and is never placed into any bucket.
The internal hash used for bucket placement hashes the four identity
fields (local_name, namespace_uri, prefix, local_name_hash)
so that atoms differing only in prefix land in different buckets when
possible, avoiding long chains.
Implementations§
Source§impl QNameTable
impl QNameTable
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new table with EMPTY_QNAME at index 0.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for QNameTable
impl RefUnwindSafe for QNameTable
impl Send for QNameTable
impl Sync for QNameTable
impl Unpin for QNameTable
impl UnsafeUnpin for QNameTable
impl UnwindSafe for QNameTable
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more