Function maybe_debug::cast_debug[][src]

pub fn cast_debug<'a, T: 'a>(val: &'a T) -> Option<&'a (dyn Debug + 'a)>
Expand description

Attempt to cast the specified value into &dyn Debug, returning None if this fails.

This always returns None on the stable compiler.

Currently it is not possible to support casting unsized types.