pub struct OutlineStructure {
pub sectioning_type: SectioningType,
pub heading: Option<Heading>,
pub sub_outline_structures: Vec<OutlineStructure>,
}Expand description
A compact intermediate outline tree built from the parsed HTML tree.
Fields§
§sectioning_type: SectioningTypeThe kind of HTML structure that created this node.
heading: Option<Heading>The heading that names this node when one was found.
sub_outline_structures: Vec<OutlineStructure>The nested outline structures found inside this node.
Implementations§
Source§impl OutlineStructure
impl OutlineStructure
Sourcepub fn parse_html<S: AsRef<str>>(html: S, max_depth: usize) -> OutlineStructure
pub fn parse_html<S: AsRef<str>>(html: S, max_depth: usize) -> OutlineStructure
Parses HTML and builds the intermediate outline tree.
Trait Implementations§
Source§impl Clone for OutlineStructure
impl Clone for OutlineStructure
Source§fn clone(&self) -> OutlineStructure
fn clone(&self) -> OutlineStructure
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 moreSource§impl Debug for OutlineStructure
impl Debug for OutlineStructure
Source§impl From<OutlineStructure> for Outline
Converts parsed HTML into a displayable outline.
impl From<OutlineStructure> for Outline
Converts parsed HTML into a displayable outline.
Source§fn from(os: OutlineStructure) -> Self
fn from(os: OutlineStructure) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for OutlineStructure
impl RefUnwindSafe for OutlineStructure
impl Send for OutlineStructure
impl Sync for OutlineStructure
impl Unpin for OutlineStructure
impl UnsafeUnpin for OutlineStructure
impl UnwindSafe for OutlineStructure
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