DependencyParser

Trait DependencyParser 

Source
pub trait DependencyParser {
    // Required methods
    fn parse(&self, path: &PathBuf) -> Result<Vec<Dependency>>;
    fn can_parse(&self, path: &PathBuf) -> bool;
}
Expand description

Trait for dependency file parsers

Required Methods§

Source

fn parse(&self, path: &PathBuf) -> Result<Vec<Dependency>>

Parse a file and return all dependencies found

Source

fn can_parse(&self, path: &PathBuf) -> bool

Check if this parser can handle the given file

Implementors§