Trait CustomDebug

Source
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§

Source

type Target: ?Sized

A target type for which custom formatting is implemented.

Required Methods§

Source

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.

Implementors§