Any

Trait Any 

Source
pub trait Any: Any { }
Expand description

A type to emulate dynamic typing.

This is a simple wrapper around core::any::Any which exists for technical reasons. Every type that implements core::any::Any implements this Any.

See the core::any::Any documentation for more details.

Any traits to be mopafied must extend this trait (e.g. trait Person: mopa::Any { }).

If/when #27745 is resolved, this trait may be replaced with a simple reexport of core::any::Any. This will be a backwards-compatible change.

Implementors§

Source§

impl<T: Any> Any for T