pub trait CustomDebug {
type Target: ?Sized;
// Required method
fn fmt_target(target: &Self::Target, f: &mut Formatter<'_>) -> Result;
}
Expand description
A trait that proxying a custom Debug for a target type.
Required Associated Types§
Required Methods§
Sourcefn fmt_target(target: &Self::Target, f: &mut Formatter<'_>) -> Result
fn fmt_target(target: &Self::Target, f: &mut Formatter<'_>) -> Result
Should formats a target type.
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.