Skip to main content

AnyDebug

Trait AnyDebug 

Source
pub 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.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T: Any + Debug> AnyDebug for T