pub enum SectioningType {
Article,
Aside,
Nav,
Section,
Root,
Body,
Heading,
}Expand description
The kind of HTML structure represented by an outline structure node.
Variants§
Article
An article element.
Aside
An aside element.
A nav element.
Section
A section element.
Root
A generic root used while flattening normal wrapper elements.
Body
A body element.
Heading
An implied outline item created from a heading after the first heading in a section.
Implementations§
Source§impl SectioningType
impl SectioningType
Sourcepub fn from_sectioning_content_tag<S: AsRef<str>>(
s: S,
) -> Option<SectioningType>
pub fn from_sectioning_content_tag<S: AsRef<str>>( s: S, ) -> Option<SectioningType>
Returns the sectioning content type for the given tag name, or None when the tag is not sectioning content.
Trait Implementations§
Source§impl Clone for SectioningType
impl Clone for SectioningType
Source§fn clone(&self) -> SectioningType
fn clone(&self) -> SectioningType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SectioningType
Source§impl Debug for SectioningType
impl Debug for SectioningType
impl Eq for SectioningType
Source§impl PartialEq for SectioningType
impl PartialEq for SectioningType
impl StructuralPartialEq for SectioningType
Auto Trait Implementations§
impl Freeze for SectioningType
impl RefUnwindSafe for SectioningType
impl Send for SectioningType
impl Sync for SectioningType
impl Unpin for SectioningType
impl UnsafeUnpin for SectioningType
impl UnwindSafe for SectioningType
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