pub struct MarkdownFacts {
pub provenance: MarkdownParserProvenance,
pub headings: Vec<MarkdownHeadingFact>,
pub link_candidates: Vec<DocumentLinkCandidate>,
pub coverage: MarkdownFactCoverage,
}Expand description
Bounded parser facts derived from one Markdown or MDX document.
Fields§
§provenance: MarkdownParserProvenanceParser provenance for every fact in this batch.
headings: Vec<MarkdownHeadingFact>Deterministic headings in source order.
link_candidates: Vec<DocumentLinkCandidate>Explicit static local-reference candidates in source order.
coverage: MarkdownFactCoverageCompleteness, limit, and unsupported-structure state.
Implementations§
Source§impl MarkdownFacts
impl MarkdownFacts
Sourcepub fn symbol_graph(&self, path: &str, language: Option<&str>) -> SymbolGraph
pub fn symbol_graph(&self, path: &str, language: Option<&str>) -> SymbolGraph
Project the heading facts into the existing symbol graph contract.
Trait Implementations§
Source§impl Clone for MarkdownFacts
impl Clone for MarkdownFacts
Source§fn clone(&self) -> MarkdownFacts
fn clone(&self) -> MarkdownFacts
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 MarkdownFacts
impl Debug for MarkdownFacts
impl Eq for MarkdownFacts
Source§impl PartialEq for MarkdownFacts
impl PartialEq for MarkdownFacts
Source§fn eq(&self, other: &MarkdownFacts) -> bool
fn eq(&self, other: &MarkdownFacts) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MarkdownFacts
Auto Trait Implementations§
impl Freeze for MarkdownFacts
impl RefUnwindSafe for MarkdownFacts
impl Send for MarkdownFacts
impl Sync for MarkdownFacts
impl Unpin for MarkdownFacts
impl UnsafeUnpin for MarkdownFacts
impl UnwindSafe for MarkdownFacts
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.