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§
fn format( &self, width: usize, path: &str, context: Option<DisplayContext<'_>>, ) -> String
fn file_separator(&self) -> String
fn match_separator(&self) -> String
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".