pub enum Tag<'a> {
Tag {
name: &'a str,
attrs: HashMap<&'a str, &'a str>,
kind: TagKind,
},
Text(&'a str),
Declaration {
name: &'a str,
attrs: HashMap<&'a str, &'a str>,
},
}Expand description
XML tag or text.
Variants§
Implementations§
Source§impl<'a> Tag<'a>
impl<'a> Tag<'a>
Sourcepub fn is_opening(&self) -> bool
pub fn is_opening(&self) -> bool
Check if tag is opening.
Sourcepub fn is_closing(&self) -> bool
pub fn is_closing(&self) -> bool
Check if tag is closing
Sourcepub fn is_self_closing(&self) -> bool
pub fn is_self_closing(&self) -> bool
Check if tag is self-closing.
Trait Implementations§
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> 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