pub trait ShapelyPretty: Shapely {
// Required methods
fn pretty(&self) -> PrettyDisplay<'_, Self>;
fn pretty_with(&self, printer: PrettyPrinter) -> PrettyDisplay<'_, Self>;
}Expand description
Extension trait for Shapely types to easily pretty-print them
Required Methods§
Sourcefn pretty(&self) -> PrettyDisplay<'_, Self>
fn pretty(&self) -> PrettyDisplay<'_, Self>
Get a displayable wrapper that pretty-prints this value
Sourcefn pretty_with(&self, printer: PrettyPrinter) -> PrettyDisplay<'_, Self>
fn pretty_with(&self, printer: PrettyPrinter) -> PrettyDisplay<'_, Self>
Get a displayable wrapper with custom printer settings
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".