[][src]Trait partialdebug::AsDebug

pub trait AsDebug {
    fn as_debug(&self) -> Option<&dyn Debug>;
}

Specialized trait used to distinguish between types that implement Debug and one's that don't.

assert!(42.as_debug().is_some());
assert!(dna.as_debug().is_none());

Required methods

fn as_debug(&self) -> Option<&dyn Debug>

Try to get a reference to self as dyn Debug

Loading content...

Implementors

impl<T> AsDebug for T[src]

impl<T: Debug> AsDebug for T[src]

Loading content...