Skip to main content

FilePrinter

Trait FilePrinter 

Source
pub trait FilePrinter {
    type Options;
    type Error;

    // Required method
    fn print(
        &self,
        path: &Path,
        options: Self::Options,
    ) -> Result<(), Self::Error>;
}
Expand description

A trait representing a printer that can print files.

Required Associated Types§

Source

type Options

The options type for the printer.

Source

type Error

The error type for the printer.

Required Methods§

Source

fn print(&self, path: &Path, options: Self::Options) -> Result<(), Self::Error>

Print the file with the given options.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§