pub trait Render {
// Required method
fn render_pretty(&self) -> String;
// Provided method
fn render_pretty_colored(&self, color: ColorMode) -> String { ... }
}Expand description
Pretty text for a model. Prefer Pretty + a Jinja template.
Required Methods§
Sourcefn render_pretty(&self) -> String
fn render_pretty(&self) -> String
Human view. Must not depend on View::format.
Provided Methods§
Sourcefn render_pretty_colored(&self, color: ColorMode) -> String
fn render_pretty_colored(&self, color: ColorMode) -> String
Pretty view honoring color. Default ignores it.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".