11
11
12
12
// EBML enum definitions and utils shared by the encoder and decoder
13
13
14
- const tag_items: uint = 0x02u;
14
+ pub const tag_items: uint = 0x02 u;
15
15
16
- const tag_paths_data_name: uint = 0x04u;
16
+ pub const tag_paths_data_name: uint = 0x04 u;
17
17
18
- const tag_def_id: uint = 0x07u;
18
+ pub const tag_def_id: uint = 0x07 u;
19
19
20
- const tag_items_data: uint = 0x08u;
20
+ pub const tag_items_data: uint = 0x08 u;
21
21
22
- const tag_items_data_item: uint = 0x09u;
22
+ pub const tag_items_data_item: uint = 0x09 u;
23
23
24
- const tag_items_data_item_family: uint = 0x0au;
24
+ pub const tag_items_data_item_family: uint = 0x0a u;
25
25
26
- const tag_items_data_item_ty_param_bounds: uint = 0x0bu;
26
+ pub const tag_items_data_item_ty_param_bounds: uint = 0x0b u;
27
27
28
- const tag_items_data_item_type: uint = 0x0cu;
28
+ pub const tag_items_data_item_type: uint = 0x0c u;
29
29
30
- const tag_items_data_item_symbol: uint = 0x0du;
30
+ pub const tag_items_data_item_symbol: uint = 0x0d u;
31
31
32
- const tag_items_data_item_variant: uint = 0x0eu;
32
+ pub const tag_items_data_item_variant: uint = 0x0e u;
33
33
34
- const tag_items_data_parent_item: uint = 0x0fu;
34
+ pub const tag_items_data_parent_item: uint = 0x0f u;
35
35
36
- const tag_index: uint = 0x11u;
36
+ pub const tag_index: uint = 0x11 u;
37
37
38
- const tag_index_buckets: uint = 0x12u;
38
+ pub const tag_index_buckets: uint = 0x12 u;
39
39
40
- const tag_index_buckets_bucket: uint = 0x13u;
40
+ pub const tag_index_buckets_bucket: uint = 0x13 u;
41
41
42
- const tag_index_buckets_bucket_elt: uint = 0x14u;
42
+ pub const tag_index_buckets_bucket_elt: uint = 0x14 u;
43
43
44
- const tag_index_table: uint = 0x15u;
44
+ pub const tag_index_table: uint = 0x15 u;
45
45
46
- const tag_meta_item_name_value: uint = 0x18u;
46
+ pub const tag_meta_item_name_value: uint = 0x18 u;
47
47
48
- const tag_meta_item_name: uint = 0x19u;
48
+ pub const tag_meta_item_name: uint = 0x19 u;
49
49
50
- const tag_meta_item_value: uint = 0x20u;
50
+ pub const tag_meta_item_value: uint = 0x20 u;
51
51
52
- const tag_attributes: uint = 0x21u;
52
+ pub const tag_attributes: uint = 0x21 u;
53
53
54
- const tag_attribute: uint = 0x22u;
54
+ pub const tag_attribute: uint = 0x22 u;
55
55
56
- const tag_meta_item_word: uint = 0x23u;
56
+ pub const tag_meta_item_word: uint = 0x23 u;
57
57
58
- const tag_meta_item_list: uint = 0x24u;
58
+ pub const tag_meta_item_list: uint = 0x24 u;
59
59
60
60
// The list of crates that this crate depends on
61
- const tag_crate_deps: uint = 0x25u;
61
+ pub const tag_crate_deps: uint = 0x25 u;
62
62
63
63
// A single crate dependency
64
- const tag_crate_dep: uint = 0x26u;
64
+ pub const tag_crate_dep: uint = 0x26 u;
65
65
66
- const tag_crate_hash: uint = 0x28u;
66
+ pub const tag_crate_hash: uint = 0x28 u;
67
67
68
- const tag_parent_item: uint = 0x29u;
68
+ pub const tag_parent_item: uint = 0x29 u;
69
69
70
- const tag_crate_dep_name: uint = 0x2au;
71
- const tag_crate_dep_hash: uint = 0x2bu;
72
- const tag_crate_dep_vers: uint = 0x2cu;
70
+ pub const tag_crate_dep_name: uint = 0x2a u;
71
+ pub const tag_crate_dep_hash: uint = 0x2b u;
72
+ pub const tag_crate_dep_vers: uint = 0x2c u;
73
73
74
- const tag_mod_impl: uint = 0x30u;
74
+ pub const tag_mod_impl: uint = 0x30 u;
75
75
76
- const tag_item_trait_method: uint = 0x31u;
77
- const tag_impl_trait: uint = 0x32u;
76
+ pub const tag_item_trait_method: uint = 0x31 u;
77
+ pub const tag_impl_trait: uint = 0x32 u;
78
78
79
79
// discriminator value for variants
80
- const tag_disr_val: uint = 0x34u;
80
+ pub const tag_disr_val: uint = 0x34 u;
81
81
82
82
// used to encode ast_map::path and ast_map::path_elt
83
- const tag_path: uint = 0x40u;
84
- const tag_path_len: uint = 0x41u;
85
- const tag_path_elt_mod: uint = 0x42u;
86
- const tag_path_elt_name: uint = 0x43u;
87
- const tag_item_field: uint = 0x44u;
88
- const tag_struct_mut: uint = 0x45u;
89
-
90
- const tag_region_param: uint = 0x46u;
91
- const tag_mod_impl_trait: uint = 0x47u;
83
+ pub const tag_path: uint = 0x40 u;
84
+ pub const tag_path_len: uint = 0x41 u;
85
+ pub const tag_path_elt_mod: uint = 0x42 u;
86
+ pub const tag_path_elt_name: uint = 0x43 u;
87
+ pub const tag_item_field: uint = 0x44 u;
88
+ pub const tag_struct_mut: uint = 0x45 u;
89
+
90
+ pub const tag_region_param: uint = 0x46 u;
91
+ pub const tag_mod_impl_trait: uint = 0x47 u;
92
92
/*
93
93
trait items contain tag_item_trait_method elements,
94
94
impl items contain tag_item_impl_method elements, and classes
@@ -97,19 +97,19 @@ const tag_mod_impl_trait: uint = 0x47u;
97
97
both, tag_item_trait_method and tag_item_impl_method have to be two
98
98
different tags.
99
99
*/
100
- const tag_item_impl_method: uint = 0x48u;
101
- const tag_item_dtor: uint = 0x49u;
102
- const tag_item_trait_method_self_ty: uint = 0x4b;
103
- const tag_item_trait_method_self_ty_region: uint = 0x4c;
100
+ pub const tag_item_impl_method: uint = 0x48 u;
101
+ pub const tag_item_dtor: uint = 0x49 u;
102
+ pub const tag_item_trait_method_self_ty: uint = 0x4b ;
103
+ pub const tag_item_trait_method_self_ty_region: uint = 0x4c ;
104
104
105
105
// Reexports are found within module tags. Each reexport contains def_ids
106
106
// and names.
107
- const tag_items_data_item_reexport: uint = 0x4d;
108
- const tag_items_data_item_reexport_def_id: uint = 0x4e;
109
- const tag_items_data_item_reexport_name: uint = 0x4f;
107
+ pub const tag_items_data_item_reexport: uint = 0x4d ;
108
+ pub const tag_items_data_item_reexport_def_id: uint = 0x4e ;
109
+ pub const tag_items_data_item_reexport_name: uint = 0x4f ;
110
110
111
111
// used to encode crate_ctxt side tables
112
- enum astencode_tag { // Reserves 0x50 -- 0x6f
112
+ pub enum astencode_tag { // Reserves 0x50 -- 0x6f
113
113
tag_ast = 0x50 ,
114
114
115
115
tag_tree = 0x51 ,
@@ -136,9 +136,9 @@ enum astencode_tag { // Reserves 0x50 -- 0x6f
136
136
tag_table_value_mode = 0x64
137
137
}
138
138
139
- const tag_item_trait_method_sort: uint = 0x70;
139
+ pub const tag_item_trait_method_sort: uint = 0x70 ;
140
140
141
- const tag_item_impl_type_basename: uint = 0x71;
141
+ pub const tag_item_impl_type_basename: uint = 0x71 ;
142
142
143
143
// Language items are a top-level directory (for speed). Hierarchy:
144
144
//
@@ -147,10 +147,10 @@ const tag_item_impl_type_basename: uint = 0x71;
147
147
// - tag_lang_items_item_id: u32
148
148
// - tag_lang_items_item_node_id: u32
149
149
150
- const tag_lang_items: uint = 0x72;
151
- const tag_lang_items_item: uint = 0x73;
152
- const tag_lang_items_item_id: uint = 0x74;
153
- const tag_lang_items_item_node_id: uint = 0x75;
150
+ pub const tag_lang_items: uint = 0x72 ;
151
+ pub const tag_lang_items_item: uint = 0x73 ;
152
+ pub const tag_lang_items_item_id: uint = 0x74 ;
153
+ pub const tag_lang_items_item_node_id: uint = 0x75 ;
154
154
155
- type link_meta = {name: @str, vers: @str, extras_hash: @str};
155
+ pub type link_meta = { name : @str , vers : @str , extras_hash : @str } ;
156
156
0 commit comments