pub enum HTMLContent {
Embedded(EmbeddedContent),
Flow(FlowContent),
Heading(HeadingContent),
Interactive(InteractiveContent),
Metadata(MetadataContent),
Palpable(PalpableContent),
Phrasing(PhrasingContent),
ScriptSupporting(ScriptSupportingElement),
Sectioning(SectioningContent),
}
Expand description
Variants§
Embedded(EmbeddedContent)
Flow(FlowContent)
Heading(HeadingContent)
Interactive(InteractiveContent)
Metadata(MetadataContent)
Palpable(PalpableContent)
Phrasing(PhrasingContent)
ScriptSupporting(ScriptSupportingElement)
Sectioning(SectioningContent)
Implementations§
Source§impl HTMLContent
impl HTMLContent
Sourcepub const fn is_embedded(&self) -> bool
pub const fn is_embedded(&self) -> bool
Returns true if the enum is HTMLContent::Embedded otherwise false
Sourcepub const fn is_flow(&self) -> bool
pub const fn is_flow(&self) -> bool
Returns true if the enum is HTMLContent::Flow otherwise false
Sourcepub const fn is_heading(&self) -> bool
pub const fn is_heading(&self) -> bool
Returns true if the enum is HTMLContent::Heading otherwise false
Sourcepub const fn is_interactive(&self) -> bool
pub const fn is_interactive(&self) -> bool
Returns true if the enum is HTMLContent::Interactive otherwise false
Sourcepub const fn is_metadata(&self) -> bool
pub const fn is_metadata(&self) -> bool
Returns true if the enum is HTMLContent::Metadata otherwise false
Sourcepub const fn is_palpable(&self) -> bool
pub const fn is_palpable(&self) -> bool
Returns true if the enum is HTMLContent::Palpable otherwise false
Sourcepub const fn is_phrasing(&self) -> bool
pub const fn is_phrasing(&self) -> bool
Returns true if the enum is HTMLContent::Phrasing otherwise false
Sourcepub const fn is_script_supporting(&self) -> bool
pub const fn is_script_supporting(&self) -> bool
Returns true if the enum is HTMLContent::ScriptSupporting otherwise false
Sourcepub const fn is_sectioning(&self) -> bool
pub const fn is_sectioning(&self) -> bool
Returns true if the enum is HTMLContent::Sectioning otherwise false
Trait Implementations§
Source§impl Clone for HTMLContent
impl Clone for HTMLContent
Source§fn clone(&self) -> HTMLContent
fn clone(&self) -> HTMLContent
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for HTMLContent
impl Debug for HTMLContent
Source§impl Display for HTMLContent
impl Display for HTMLContent
Source§impl PartialEq for HTMLContent
impl PartialEq for HTMLContent
impl StructuralPartialEq for HTMLContent
Auto Trait Implementations§
impl Freeze for HTMLContent
impl RefUnwindSafe for HTMLContent
impl Send for HTMLContent
impl Sync for HTMLContent
impl Unpin for HTMLContent
impl UnwindSafe for HTMLContent
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