pub trait InfoOutput {
// Required methods
fn by_file(paths: Vec<PathBuf>);
fn by_println(paths: Vec<PathBuf>);
fn by_csv(paths: Vec<PathBuf>);
}Expand description
Define the trait 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.
Required Methods§
fn by_file(paths: Vec<PathBuf>)
fn by_println(paths: Vec<PathBuf>)
fn by_csv(paths: Vec<PathBuf>)
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.