pub trait PrettyNested {
// Required method
fn fmt_nested(&self, cx: &PrettyCx<'_, '_>) -> Result<NestedString, Error>;
// Provided method
fn nested_string(&self, cx: &PrettyCx<'_, '_>) -> String { ... }
}Required Methods§
fn fmt_nested(&self, cx: &PrettyCx<'_, '_>) -> Result<NestedString, Error>
Provided Methods§
fn nested_string(&self, cx: &PrettyCx<'_, '_>) -> String
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".