winprint-ext 0.2.2

Fork of winprint (Windows printer API) with enhanced image printing (fit-to-page, auto-rotate)
Documentation
1
2
3
4
5
6
7
8
9
10
11
use std::path::Path;

/// A trait representing a printer that can print files.
pub trait FilePrinter {
    /// The options type for the printer.
    type Options;
    /// The error type for the printer.
    type Error;
    /// Print the file with the given options.
    fn print(&self, path: &Path, options: Self::Options) -> std::result::Result<(), Self::Error>;
}