pub enum TagKey<'t> {
Known(u16),
Name(&'t str),
}Expand description
What crate::Index groups elements by for name tests. Elements with
the same name lowercased share a group however the tree names them, so
a query’s name is looked up once, not compared on every element.
Variants§
Known(u16)
A number the tree gives every element of one name, as an HTML parser numbers the tags it knows. It saves the index reading and hashing the name of every element.
Name(&'t str)
The element’s local name.
Trait Implementations§
impl<'t> Copy for TagKey<'t>
impl<'t> Eq for TagKey<'t>
impl<'t> StructuralPartialEq for TagKey<'t>
Auto Trait Implementations§
impl<'t> Forget for TagKey<'t>
impl<'t> Freeze for TagKey<'t>
impl<'t> Move for TagKey<'t>
impl<'t> RefUnwindSafe for TagKey<'t>
impl<'t> Send for TagKey<'t>
impl<'t> Sync for TagKey<'t>
impl<'t> Unpin for TagKey<'t>
impl<'t> UnsafeUnpin for TagKey<'t>
impl<'t> UnwindSafe for TagKey<'t>
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