pub struct Tag {
pub kind: TagKind,
pub name: QualName,
pub attrs: Vec<Attribute>,
}
Expand description
XML 5 Tag Token
Fields§
§kind: TagKind
Token kind denotes which type of token was encountered.
E.g. if parser parsed </a>
the token kind would be EndTag
.
name: QualName
Qualified name of the tag.
attrs: Vec<Attribute>
List of attributes attached to this tag. Only valid in start and empty tag.
Implementations§
Trait Implementations§
impl Eq for Tag
impl StructuralPartialEq for Tag
Auto Trait Implementations§
impl Freeze for Tag
impl !RefUnwindSafe for Tag
impl !Send for Tag
impl !Sync for Tag
impl Unpin for Tag
impl UnwindSafe for Tag
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