pub struct MarkdownDoc {
pub frontmatter: Option<Frontmatter>,
pub headings: Vec<Heading>,
pub sections: Vec<Section>,
pub code_blocks: Vec<CodeBlock>,
pub list_items: Vec<ListItem>,
pub paragraphs: Vec<Paragraph>,
pub links: Vec<Link>,
}Expand description
Structural index of a Markdown document, built in one parse pass.
Fields§
§frontmatter: Option<Frontmatter>YAML frontmatter block, if the file starts with ---.
headings: Vec<Heading>All headings, in document order.
sections: Vec<Section>Heading-delimited spans covering the whole body.
code_blocks: Vec<CodeBlock>Fenced and indented code blocks.
list_items: Vec<ListItem>Bullet and ordered list items, flattened.
paragraphs: Vec<Paragraph>Top-level prose paragraphs (excludes headings, list items, code blocks).
links: Vec<Link>All hyperlinks.
Trait Implementations§
Source§impl Clone for MarkdownDoc
impl Clone for MarkdownDoc
Source§fn clone(&self) -> MarkdownDoc
fn clone(&self) -> MarkdownDoc
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 MarkdownDoc
impl Debug for MarkdownDoc
Source§impl Default for MarkdownDoc
impl Default for MarkdownDoc
Source§fn default() -> MarkdownDoc
fn default() -> MarkdownDoc
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MarkdownDoc
impl RefUnwindSafe for MarkdownDoc
impl Send for MarkdownDoc
impl Sync for MarkdownDoc
impl Unpin for MarkdownDoc
impl UnsafeUnpin for MarkdownDoc
impl UnwindSafe for MarkdownDoc
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