Skip to main content

announce_std/
any.rs

1//! announce mocks of `any` traits (hand-written).
2
3#[allow(unused_imports)]
4use announce::announce;
5
6/// announce mock of [`::core::any::Any`]: invoke `Any!` to receive its definition.
7///
8/// The real trait is re-exported under the same path.
9#[announce(mock = ::core::any::Any)]
10pub trait Any: 'static {
11    fn type_id(&self) -> ::core::any::TypeId;
12}
13
14#[doc(no_inline)]
15pub use ::core::any::Any;