Skip to main content

Renderer

Trait Renderer 

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

Trait for rendering a Diff to an output stream.

Required Methods§

Source

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

Writes the formatted diff to the provided writer.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§