pub trait DebugExt: Debug + Sized {
// Provided methods
fn dprintln(self, msg: &'static str) -> Self { ... }
fn deprintln(self, msg: &'static str) -> Self { ... }
fn dprintln_dbg(self, msg: &'static str) -> Self { ... }
fn deprintln_dbg(self, msg: &'static str) -> Self { ... }
fn dpprintln(self, msg: &'static str) -> Self { ... }
fn depprintln(self, msg: &'static str) -> Self { ... }
fn dpprintln_dbg(self, msg: &'static str) -> Self { ... }
fn depprintln_dbg(self, msg: &'static str) -> Self { ... }
fn dbg(self) -> Self { ... }
fn dbg_dbg(self) -> Self { ... }
fn dbg_tagged(self, tag: &str) -> Self { ... }
fn dbg_tagged_dbg(self, tag: &str) -> Self { ... }
}Provided Methods§
Sourcefn dprintln_dbg(self, msg: &'static str) -> Self
fn dprintln_dbg(self, msg: &'static str) -> Self
println!(“{msg}: {self:?}”); only in debug builds
Sourcefn deprintln_dbg(self, msg: &'static str) -> Self
fn deprintln_dbg(self, msg: &'static str) -> Self
eprintln!(“{msg}: {self:?}”); only in debug builds
Sourcefn depprintln(self, msg: &'static str) -> Self
fn depprintln(self, msg: &'static str) -> Self
eprintln!(“{msg}: {self:#?}”); pretty eprintln
Sourcefn dpprintln_dbg(self, msg: &'static str) -> Self
fn dpprintln_dbg(self, msg: &'static str) -> Self
println!(“{msg}: {self:#?}”); pretty println only in debug builds
Sourcefn depprintln_dbg(self, msg: &'static str) -> Self
fn depprintln_dbg(self, msg: &'static str) -> Self
eprintln!(“{msg}: {self:#?}”); pretty eprintln only in debug builds
fn dbg_tagged(self, tag: &str) -> Self
fn dbg_tagged_dbg(self, tag: &str) -> Self
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.