pub trait ToPretty {
type Output: Element;
type Context;
// Required method
fn pretty<R: Repo>(
&self,
hi: &mut Highlighter,
context: &Self::Context,
repo: &R,
) -> Self::Output;
}
Expand description
Types that can be rendered as pretty diffs.
Required Associated Types§
Required Methods§
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.