DebugIt

Function DebugIt 

Source
pub unsafe fn DebugIt<T>(value: T) -> DebugIt<T>
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));
    }
}