@@ -113,50 +113,18 @@ enum RenderMode {
113
113
/// by hand to a large JS file at the end of cache-creation.
114
114
#[ derive( Debug ) ]
115
115
pub ( crate ) struct IndexItem {
116
- ty : ItemType ,
117
- defid : Option < DefId > ,
118
- name : Symbol ,
119
- path : String ,
120
- desc : String ,
121
- parent : Option < DefId > ,
122
- parent_idx : Option < isize > ,
123
- exact_path : Option < String > ,
124
- impl_id : Option < DefId > ,
125
- search_type : Option < IndexItemFunctionType > ,
126
- aliases : Box < [ Symbol ] > ,
127
- deprecation : Option < Deprecation > ,
128
- }
129
-
130
- impl IndexItem {
131
- pub fn new (
132
- ty : ItemType ,
133
- defid : Option < DefId > ,
134
- name : Symbol ,
135
- path : String ,
136
- desc : String ,
137
- parent : Option < DefId > ,
138
- parent_idx : Option < isize > ,
139
- exact_path : Option < String > ,
140
- impl_id : Option < DefId > ,
141
- search_type : Option < IndexItemFunctionType > ,
142
- aliases : Box < [ Symbol ] > ,
143
- deprecation : Option < Deprecation > ,
144
- ) -> Self {
145
- Self {
146
- ty,
147
- defid,
148
- name,
149
- path,
150
- desc,
151
- parent,
152
- parent_idx,
153
- exact_path,
154
- impl_id,
155
- search_type,
156
- aliases,
157
- deprecation,
158
- }
159
- }
116
+ pub ( crate ) ty : ItemType ,
117
+ pub ( crate ) defid : Option < DefId > ,
118
+ pub ( crate ) name : Symbol ,
119
+ pub ( crate ) path : String ,
120
+ pub ( crate ) desc : String ,
121
+ pub ( crate ) parent : Option < DefId > ,
122
+ pub ( crate ) parent_idx : Option < isize > ,
123
+ pub ( crate ) exact_path : Option < String > ,
124
+ pub ( crate ) impl_id : Option < DefId > ,
125
+ pub ( crate ) search_type : Option < IndexItemFunctionType > ,
126
+ pub ( crate ) aliases : Box < [ Symbol ] > ,
127
+ pub ( crate ) deprecation : Option < Deprecation > ,
160
128
}
161
129
162
130
/// A type used for the search index.
0 commit comments