Struct debugit::DebugIt [−][src]
pub struct DebugIt<T> { /* fields omitted */ }
Expand description
This type always implements Debug
. Uses specialization to use
the inner value’s Debug (which it should basically always have).
Otherwise, falls back to print the type name.
Examples
use debugit::DebugIt as D;
fn process_something<T>(x: T) {
unsafe {
println!("starting with {:?}", D(&x));
}
}
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for DebugIt<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for DebugIt<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more