Trait AnyDebug

Source
trait AnyDebug: Any + Debug { }
Expand description

This trait is similar to Any, except that it also exposes the underlying type’s Debug implementation.

(Trying to debug-print dyn Any results in the unhelpful "Any { .. }".)

Implementations§

Source§

impl dyn AnyDebug

Source

fn downcast_ref<T: Any>(&self) -> Option<&T>

Equivalent to <dyn Any>::downcast_ref.

Implementors§

Source§

impl<T: Any + Debug> AnyDebug for T