pub trait ForDebug: Sized {
// Provided method
fn for_debug(self) -> DiagnosticDebug<Self> { ... }
}
Provided Methods§
Sourcefn for_debug(self) -> DiagnosticDebug<Self>
fn for_debug(self) -> DiagnosticDebug<Self>
Format this type using core::fmt::Debug
.
Return a value that implements the core::fmt::Debug
trait
by displaying self
in a language-appropriate way. For
example:
log::debug!("My scalar: {:?}", scalar.for_debug());
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.