pub struct ModuleDependencyValidator<'a> { /* private fields */ }
Expand description
Module dependency validator for detecting circular imports and missing exports
Implementations§
Source§impl<'a> ModuleDependencyValidator<'a>
impl<'a> ModuleDependencyValidator<'a>
Sourcepub fn new(modules: &'a [ModuleDescriptor]) -> Self
pub fn new(modules: &'a [ModuleDescriptor]) -> Self
Create a new validator
Sourcepub fn validate(&self) -> Result<(), Vec<ModuleValidationError>>
pub fn validate(&self) -> Result<(), Vec<ModuleValidationError>>
Validate all modules for structural issues Note: Circular import detection is handled by topological_sort() for efficiency
Sourcepub fn topological_sort(&self) -> Result<Vec<String>, ModuleValidationError>
pub fn topological_sort(&self) -> Result<Vec<String>, ModuleValidationError>
Get topological order of modules (dependencies first)
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ModuleDependencyValidator<'a>
impl<'a> RefUnwindSafe for ModuleDependencyValidator<'a>
impl<'a> Send for ModuleDependencyValidator<'a>
impl<'a> Sync for ModuleDependencyValidator<'a>
impl<'a> Unpin for ModuleDependencyValidator<'a>
impl<'a> UnwindSafe for ModuleDependencyValidator<'a>
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