pub trait Pretty {
// Required method
fn fmt(&self, cx: &PrettyCx<'_>, f: &mut Formatter<'_>) -> Result;
// Provided method
fn default_cx(tcx: TyCtxt<'_>) -> PrettyCx<'_> { ... }
}
Required Methods§
Provided Methods§
fn default_cx(tcx: TyCtxt<'_>) -> PrettyCx<'_>
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.