pub trait AsDebug {
// Required method
fn as_debug(&self) -> &dyn Debug;
}Expand description
Helper trait to obtain a &dyn Debug view.
This is auto-implemented for any T: Debug and is used by the runtime to
format Opaque values without knowing their concrete type.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".