More restructuring
parent: tbd commit: 10b7b7c
1 | use HashMap; |
2 | |
3 | use ; |
4 | use |
5 | , ObjectSettingPair, ObjectValuePair, | ObjectOperationPair
6 | ; |
7 | use trace; |
8 | |
9 | |
10 | |
11 | pub objects: , |
12 | pub operations: , |
13 | pub settings: , |
14 | pub values: , |
15 | |
16 | |
17 | |
18 | pub unsafe |
19 | get_type_metadata_reference |
20 | . |
21 | .as_ref |
22 | |
23 | |
24 | |
25 | trace!; |
26 | |
27 | self.objects.insert; |
28 | |
29 | |
30 | |
31 | &mut self, |
32 | object_kind: &'static str, |
33 | operation_name: &'static str, |
34 | vtable: &'static , |
35 | |
36 | trace! |
37 | "Registering operation metadata for {}::{}", |
38 | object_kind, |
39 | operation_name |
40 | ; |
41 | |
42 | self.operations.insert |
43 | ObjectOperationPair |
44 | object_kind, |
45 | operation_name, |
46 | , |
47 | vtable, |
48 | ; |
49 | |
50 | |
51 | |
52 | &mut self, |
53 | object_kind: &'static str, |
54 | setting_name: &'static str, |
55 | vtable: &'static , |
56 | |
57 | trace!; |
58 | |
59 | self.settings.insert |
60 | ObjectSettingPair |
61 | object_kind, |
62 | setting_name, |
63 | , |
64 | vtable, |
65 | ; |
66 | |
67 | |
68 | |
69 | &mut self, |
70 | object_kind: &'static str, |
71 | value_name: &'static str, |
72 | vtable: &'static , |
73 | |
74 | trace!; |
75 | |
76 | self.values.insert |
77 | ObjectValuePair |
78 | object_kind, |
79 | value_name, |
80 | , |
81 | vtable, |
82 | ; |
83 | |
84 | |
85 |