announce-std 0.2.0

announce trampolines for std/core traits
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! announce mocks of `any` traits (hand-written).

#[allow(unused_imports)]
use announce::announce;

/// announce mock of [`::core::any::Any`]: invoke `Any!` to receive its definition.
///
/// The real trait is re-exported under the same path.
#[announce(mock = ::core::any::Any)]
pub trait Any: 'static {
    fn type_id(&self) -> ::core::any::TypeId;
}

#[doc(no_inline)]
pub use ::core::any::Any;