pub trait ErrorCollector {
    // Required methods
    fn collect(&mut self, name: String, e: Box<dyn Error>);
    fn get_results(&mut self) -> Vec<(String, String)>;
}
Expand description

This trait helps with collecting errors and returning the results.

Required Methods§

source

fn collect(&mut self, name: String, e: Box<dyn Error>)

Collects errors for files based on their name (path).

source

fn get_results(&mut self) -> Vec<(String, String)>

Returns all currently gathered results.

Implementations on Foreign Types§

source§

impl ErrorCollector for Vec<(String, String)>

source§

fn collect(&mut self, name: String, e: Box<dyn Error>)

source§

fn get_results(&mut self) -> Vec<(String, String)>

Implementors§