pub struct BrokenLocalLinkRule;Expand description
AIL040 broken-local-link: relative link target does not exist on disk.
Trait Implementations§
Source§impl Debug for BrokenLocalLinkRule
impl Debug for BrokenLocalLinkRule
Source§impl Default for BrokenLocalLinkRule
impl Default for BrokenLocalLinkRule
Source§fn default() -> BrokenLocalLinkRule
fn default() -> BrokenLocalLinkRule
Returns the “default value” for a type. Read more
Source§impl Rule for BrokenLocalLinkRule
impl Rule for BrokenLocalLinkRule
Source§fn applies_to(&self, file_type: FileType) -> bool
fn applies_to(&self, file_type: FileType) -> bool
Applies to every Markdown document — guidance and generic project docs alike — since broken links are a universal quality concern.
Source§fn default_severity(&self) -> Severity
fn default_severity(&self) -> Severity
Severity when no config override applies.
Source§fn description(&self) -> &'static str
fn description(&self) -> &'static str
One-line human description of what the rule enforces. Reporters show
this once per rule group so an auditor knows why it fired.
Source§fn fix_hint(&self) -> &'static str
fn fix_hint(&self) -> &'static str
One-line suggested remediation. Empty string means the rule has no
generic hint (the caller should look at the finding detail instead).
Source§fn run(&self, doc: &ParsedDocument, _ctx: &RuleContext<'_>) -> Vec<Violation>
fn run(&self, doc: &ParsedDocument, _ctx: &RuleContext<'_>) -> Vec<Violation>
Inspect one document and return any findings.
Auto Trait Implementations§
impl Freeze for BrokenLocalLinkRule
impl RefUnwindSafe for BrokenLocalLinkRule
impl Send for BrokenLocalLinkRule
impl Sync for BrokenLocalLinkRule
impl Unpin for BrokenLocalLinkRule
impl UnsafeUnpin for BrokenLocalLinkRule
impl UnwindSafe for BrokenLocalLinkRule
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