1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//! Metadata trait definition for user-defined types that can be added to the `SharedState` ad-hoc
use Any;
use HashMap;
use Debug;
use ;
/// typedef of the `SharedState`'s `metadata` field
pub type MetadataMap = ;
/// an implementor of this trait can be cast to [`Any`] as part of a
/// dynamic dispatch system
/// an implementor of this trait can be cast to a mutable [`Any`] as part of a
/// dynamic dispatch system
/// an implementor of the [`Metadata`] trait will be able to store instances
/// of itself in the `metadata` field of the [`SharedState`] struct
///
/// [`SharedState`]: crate::state::SharedState