DependencyParser

Trait DependencyParser 

Source
pub trait DependencyParser: Send + Sync {
    // Required methods
    fn parse(&self, root: &Path) -> Result<Vec<Dependency>, ResearchError>;
    fn has_manifest(&self, root: &Path) -> bool;
}
Expand description

Trait for language-specific dependency parsers

Required Methods§

Source

fn parse(&self, root: &Path) -> Result<Vec<Dependency>, ResearchError>

Parses dependencies from manifest files

Source

fn has_manifest(&self, root: &Path) -> bool

Checks if the language’s manifest file exists

Implementors§