pub trait DebugExt<D> {
// Provided method
fn debug(&self) -> Carrier<'_, Self, D> { ... }
}Expand description
A trait extension which adds a .debug() method like Path::display does this for any type.
Its method returns an object that implements Debug and can be used for formatting.
Provided Methods§
Sourcefn debug(&self) -> Carrier<'_, Self, D>
fn debug(&self) -> Carrier<'_, Self, D>
Returns a wrapper that implements Debug via CustomDebug.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".