maybe_debug

Function maybe_debug 

Source
pub fn maybe_debug<T: ?Sized>(val: &T) -> MaybeDebug<'_>
Expand description

Attempt to cast the specified value into &dyn Debug, falling back to a reasonable default on failure.

This unconditionally delegates to MaybeDebug::fallback on the stable compiler.