Skip to main content

SummaryRenderer

Trait SummaryRenderer 

Source
pub trait SummaryRenderer {
    // Required method
    fn render_summary<W: Write>(
        &self,
        diff: &Diff,
        opts: &RenderOptions,
        writer: &mut W,
    ) -> Result<()>;
}
Expand description

Trait for rendering a summary (counts only, no component details) to an output stream.

Mirrors Renderer but produces compact output suitable for --summary mode.

Required Methods§

Source

fn render_summary<W: Write>( &self, diff: &Diff, opts: &RenderOptions, writer: &mut W, ) -> Result<()>

Writes a summary-only view of the diff to the provided writer.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§