pub trait InfoOutput: InfoFetcher {
// Provided methods
fn by_file(paths: Vec<PathBuf>, args: Vec<String>) { ... }
fn by_println(paths: Vec<PathBuf>, args: Vec<String>) { ... }
fn by_csv(paths: Vec<PathBuf>, args: Vec<String>) { ... }
}Expand description
Define the output method for the different file types
3 ways to output the information:
by file to output to a text file,
by println to output to the terminal,
by csv to output to a csv file.
Provided Methods§
fn by_file(paths: Vec<PathBuf>, args: Vec<String>)
fn by_println(paths: Vec<PathBuf>, args: Vec<String>)
fn by_csv(paths: Vec<PathBuf>, args: Vec<String>)
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.