winprint_ext/printer/file.rs
1use std::path::Path;
2
3/// A trait representing a printer that can print files.
4pub trait FilePrinter {
5 /// The options type for the printer.
6 type Options;
7 /// The error type for the printer.
8 type Error;
9 /// Print the file with the given options.
10 fn print(&self, path: &Path, options: Self::Options) -> std::result::Result<(), Self::Error>;
11}