pub struct LintReport {
pub word_count: usize,
pub heading_count: usize,
pub max_heading_depth: u8,
pub code_block_count: usize,
pub code_block_langs: Vec<String>,
pub has_math: bool,
pub has_mermaid: bool,
pub broken_links: Vec<BrokenLink>,
}Expand description
A structured lint report for a Markdown document.
Fields§
§word_count: usizeNumber of words in the document (rough whitespace split).
heading_count: usizeTotal number of heading nodes.
max_heading_depth: u8Maximum heading depth seen (1 = H1, 6 = H6). 0 if no headings.
code_block_count: usizeNumber of fenced code blocks.
code_block_langs: Vec<String>Languages used in fenced code blocks (sorted, deduplicated).
Does not include "mermaid" — that is tracked by [has_mermaid].
has_math: boolWhether any inline or block math was found ($ marker).
has_mermaid: boolWhether any Mermaid diagram blocks were found.
broken_links: Vec<BrokenLink>Broken links: [text]() or [text](#).
Implementations§
Trait Implementations§
Source§impl Clone for LintReport
impl Clone for LintReport
Source§fn clone(&self) -> LintReport
fn clone(&self) -> LintReport
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 LintReport
impl Debug for LintReport
Source§impl Default for LintReport
impl Default for LintReport
Source§fn default() -> LintReport
fn default() -> LintReport
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LintReport
impl RefUnwindSafe for LintReport
impl Send for LintReport
impl Sync for LintReport
impl Unpin for LintReport
impl UnsafeUnpin for LintReport
impl UnwindSafe for LintReport
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,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more