pub enum HtmlValue<'a> {
Document,
Element,
Text(&'a str),
Comment,
Doctype,
}Variants§
Implementations§
Source§impl<'a> HtmlValue<'a>
impl<'a> HtmlValue<'a>
pub const fn is_document(&self) -> bool
pub const fn is_element(&self) -> bool
pub const fn is_comment(&self) -> bool
pub const fn is_doctype(&self) -> bool
pub const fn as_text(&self) -> Option<&str>
Trait Implementations§
Source§impl<'a> PartialEq for HtmlValue<'a>
impl<'a> PartialEq for HtmlValue<'a>
impl<'a> Copy for HtmlValue<'a>
impl<'a> StructuralPartialEq for HtmlValue<'a>
Auto Trait Implementations§
impl<'a> Freeze for HtmlValue<'a>
impl<'a> RefUnwindSafe for HtmlValue<'a>
impl<'a> Send for HtmlValue<'a>
impl<'a> Sync for HtmlValue<'a>
impl<'a> Unpin for HtmlValue<'a>
impl<'a> UnsafeUnpin for HtmlValue<'a>
impl<'a> UnwindSafe for HtmlValue<'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