pub struct ParseResult {
pub code_blocks: Vec<(usize, usize)>,
pub code_spans: Vec<(usize, usize)>,
pub code_block_details: Vec<CodeBlockDetail>,
pub strong_spans: Vec<StrongSpanDetail>,
pub line_to_list: LineToListMap,
pub list_start_values: ListStartValues,
pub html_blocks: Vec<(usize, usize)>,
}Expand description
Result of the central pulldown-cmark parse, capturing all data needed by individual rules
Fields§
§code_blocks: Vec<(usize, usize)>Code block byte ranges (start, end)
code_spans: Vec<(usize, usize)>Inline code span byte ranges (start, end)
code_block_details: Vec<CodeBlockDetail>Detailed code block info (fenced vs indented, info string)
strong_spans: Vec<StrongSpanDetail>Strong emphasis span details
line_to_list: LineToListMapOrdered list membership: maps line number (1-indexed) to list ID
list_start_values: ListStartValuesOrdered list start values: maps list ID to start value
html_blocks: Vec<(usize, usize)>HTML block byte ranges (start, end)
Needed to know how far an unclosed <!-- reaches. The block ends where
CommonMark says it does, which is the end of the enclosing container
rather than the end of the document: an unclosed comment in a blockquote
stops at the quote, and one in a list item stops at the blank line.
Auto Trait Implementations§
impl Freeze for ParseResult
impl RefUnwindSafe for ParseResult
impl Send for ParseResult
impl Sync for ParseResult
impl Unpin for ParseResult
impl UnsafeUnpin for ParseResult
impl UnwindSafe for ParseResult
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