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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/*!
A trait to act as a registry of data concerning some classification
scheme.
In it's simplest for the registry is a `HashMap` of identifier values to
some type that describes the identifier (see [classification](../classification/index.html)
and [market](../market/index.html) for examples). However, a registry has
specific value because there is some notion that the set of codes is standardized
and so has a source, a governing body and publication dates.
It is also common for such schemes to be hierarchical, and so there is direct
support for a [`get_children`](trait.Registry.html#tymethod.get_children) method
that may return `None` if unsupported by the current scheme.
*/
use NaiveDate as Date; /* match this to prelude */
// ------------------------------------------------------------------------------------------------
// Public Traits
// ------------------------------------------------------------------------------------------------
/// A trait to support the lookup of standardized codes.