pub struct NameId(pub u32);Expand description
Interned string identifier for names and namespace URIs
See XML_NAME_TABLE.md for NameTable design. NameId(0) is reserved for empty string.
Note: NameId is NOT a slotmap key - it’s a simple index into the NameTable which uses a custom chained hash table for string interning.
Tuple Fields§
§0: u32Trait Implementations§
impl Copy for NameId
impl Eq for NameId
impl StructuralPartialEq for NameId
Auto Trait Implementations§
impl Freeze for NameId
impl RefUnwindSafe for NameId
impl Send for NameId
impl Sync for NameId
impl Unpin for NameId
impl UnsafeUnpin for NameId
impl UnwindSafe for NameId
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