pub enum ElementTag {
Show 17 variants
Div,
Span,
P,
H1,
H2,
H3,
H4,
H5,
H6,
Ul,
Ol,
Li,
Blockquote,
A,
Strong,
Em,
Br,
}
Expand description
The enum to represent an HTML element tag.
Variants§
Implementations§
Source§impl ElementTag
impl ElementTag
Sourcepub fn is_block_item(&self) -> bool
pub fn is_block_item(&self) -> bool
Whether this tag is a block item.
Trait Implementations§
Source§impl Clone for ElementTag
impl Clone for ElementTag
Source§fn clone(&self) -> ElementTag
fn clone(&self) -> ElementTag
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ElementTag
impl Debug for ElementTag
Source§impl PartialEq for ElementTag
impl PartialEq for ElementTag
impl Copy for ElementTag
impl Eq for ElementTag
impl StructuralPartialEq for ElementTag
Auto Trait Implementations§
impl Freeze for ElementTag
impl RefUnwindSafe for ElementTag
impl Send for ElementTag
impl Sync for ElementTag
impl Unpin for ElementTag
impl UnwindSafe for ElementTag
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