Skip to main content

OutputFormat

Trait OutputFormat 

Source
pub trait OutputFormat: Send + Sync {
    // Required methods
    fn format(
        &self,
        width: usize,
        path: &str,
        context: Option<DisplayContext<'_>>,
    ) -> String;
    fn file_separator(&self) -> String;
    fn match_separator(&self) -> String;
}

Required Methods§

Source

fn format( &self, width: usize, path: &str, context: Option<DisplayContext<'_>>, ) -> String

Source

fn file_separator(&self) -> String

Source

fn match_separator(&self) -> String

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§