pub struct Tag<'a> {
pub name: Cow<'a, str>,
pub attributes: Vec<Attribute<'a>>,
pub self_closing: bool,
}Expand description
A start or end tag.
Fields§
§name: Cow<'a, str>The ASCII-lowercase tag name.
attributes: Vec<Attribute<'a>>Attributes in source order, with duplicate names removed.
self_closing: boolWhether the tag ended with />.
Trait Implementations§
impl<'a> Eq for Tag<'a>
impl<'a> StructuralPartialEq for Tag<'a>
Auto Trait Implementations§
impl<'a> Freeze for Tag<'a>
impl<'a> RefUnwindSafe for Tag<'a>
impl<'a> Send for Tag<'a>
impl<'a> Sync for Tag<'a>
impl<'a> Unpin for Tag<'a>
impl<'a> UnsafeUnpin for Tag<'a>
impl<'a> UnwindSafe for Tag<'a>
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