pub struct IntegrityAnalyzer;Implementations§
Source§impl IntegrityAnalyzer
impl IntegrityAnalyzer
Sourcepub fn analyze(
file_links: &HashMap<String, Vec<String>>,
known_files: &HashSet<String>,
file_headings: &HashMap<String, Vec<String>>,
) -> IntegrityResult
pub fn analyze( file_links: &HashMap<String, Vec<String>>, known_files: &HashSet<String>, file_headings: &HashMap<String, Vec<String>>, ) -> IntegrityResult
Check internal link integrity.
file_links: map of (source_file_path → vec of link targets found in that file)
known_files: set of all known file relative paths in the project
file_headings: map of (file_path → vec of heading slugs in that file)
Sourcepub fn analyze_directives(
config_contents: &HashMap<String, String>,
known_files: &HashSet<String>,
) -> Vec<BrokenReference>
pub fn analyze_directives( config_contents: &HashMap<String, String>, known_files: &HashSet<String>, ) -> Vec<BrokenReference>
Analyze directive references found in config file contents.
Call this with a map of config files (path → content) to validate
@filename directives like @AGENTS.md or @.claude/instructions.
Auto Trait Implementations§
impl Freeze for IntegrityAnalyzer
impl RefUnwindSafe for IntegrityAnalyzer
impl Send for IntegrityAnalyzer
impl Sync for IntegrityAnalyzer
impl Unpin for IntegrityAnalyzer
impl UnsafeUnpin for IntegrityAnalyzer
impl UnwindSafe for IntegrityAnalyzer
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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