-
Notifications
You must be signed in to change notification settings - Fork 0
/
new2.html
257 lines (229 loc) · 12.6 KB
/
new2.html
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
<!doctype html>
<html class="rust">
<head>
<meta charset="utf-8" />
<link rel="stylesheet" href="css/variables.css" />
<link rel="stylesheet" href="css/general.css" />
<link rel="stylesheet" href="css/chrome.css" />
<link rel="stylesheet" href="css/font/font.css" />
<link rel="stylesheet" href="css/light.css" id="theme_css" />
<script type="text/javascript" src="script/sidebar.js"></script>
<script type="text/javascript" src="script/pageload.js"></script>
<script type="text/javascript" src="script/pagerender.js"></script>
<script type="text/javascript" src="script/main.js"></script>
</head>
<body onload="init()">
<!-- The box used to dispay advanced tooltips (hidden, by default)-->
<nav id="infobox" class="infobox">
Tooltip text.
</nav>
<!-- The theme selection popup -->
<div id="theme_selector">
<ul class="theme_selector">
<a href="javascript:setTheme('rust2')"><li>Rust</li></a>
<a href="javascript:setTheme('light')"><li>Light</li></a>
<a href="javascript:setTheme('ayu')"><li>Ayu</li></a>
<a href="javascript:setTheme('navy')"><li>Navy</li></a>
<a href="javascript:setTheme('coal')"><li>Coal</li></a>
</ul>
</div>
<!-- The help popup selection popup -->
<div id="help_message">
<p class="theme_selector">
This is a prototype to test a new layout<br>
for the Rustdoc tool. It is just a Proof of <br>
concept. It is not intended for real use.<br>
It is buggy, partially implemented, based on <br>
old documentation.<br>
</p>
</div>
<!-- The resizable sidebar -->
<nav class="sidebar" id="sidebar">
<div id="crateinfo" class="crateinfo">
<img class="logo" src="img/logo.png" /><br>
Rust standard library
</div>
<hr>
<div id="searchbox">
<input placeholder="Type 'S' to search, '?' for help" />
<a id="help_btn">
<div class="button">❔</div>
</a>
<a id="theme_btn">
<div class="button">⚙️</div>
</a>
</div>
<hr>
<div id="cratetree" class="cratetree">
<ul>
<li id="book_root" data-path="book" data-level="1" class="can_fold l1">
<img src="img/arrow/fold.png" />
<img src="img/book.png" />
<a href="book/index.png" onclick="goToPage('book/index.html');return false">The Book</a>
</li>
<li id="keywords_root" data-path="std" data-level="1" class="can_fold l1">
<img src="img/arrow/fold.png" />
<img src="img/item/primitive.png" />
<a href="std/index.html" onclick="goToPage('std/index.html');return false">Keywords</a>
</li>
<li id="primitives_root" data-path="std" data-level="1" class="can_fold l1">
<img src="img/arrow/fold.png" />
<img src="img/item/primitive.png" />
<a href="std/index.html" onclick="goToPage('std/index.html');return false">Primitives</a>
</li>
<li id="alloc_root" data-path="alloc" data-level="1" class="can_fold l1">
<img src="img/arrow/fold.png" />
<img src="img/item/crate.png" />
<a href="alloc/index.html" onclick="goToPage('alloc/index.html');return false">alloc</a>
</li>
<li id="core_root" data-path="core" data-level="1" class="can_fold l1">
<img src="img/arrow/fold.png" />
<img src="img/item/crate.png" />
<a href="core/index.html" onclick="goToPage('core/index.html');return false">core</a>
</li>
<li id="proc_macro_root" data-path="proc_macro" data-level="1" class="can_fold l1">
<img src="img/arrow/fold.png" />
<img src="img/item/crate.png" />
<a href="proc_macro/index.html" onclick="goToPage('proc_macro/index.html');return false">proc_macro</a>
</li>
<li id="std_root" data-path="std" data-level="1" class="can_fold l1">
<img src="img/arrow/fold.png" />
<img src="img/item/crate.png" />
<a href="std/index.html" onclick="goToPage('std/index.html');return false">std</a>
</li>
<li id="test_root" data-path="test" data-level="1" class="can_fold l1">
<img src="img/arrow/fold.png" />
<img src="img/item/crate.png" />
<a href="test/index.html" onclick="goToPage('test/index.html');return false">test</a>
</li>
</ul>
</div>
</nav>
<!-- The invisible slider used to resize the sidebar -->
<nav id="slider" class="slider">
</nav>
<!-- A iframe for documentation from third party web site -->
<iframe id="external"></iframe>
<!-- The right side of the page containing the informations -->
<section id="main">
<header>
<!-- The title area-->
<section id="title" class="title">
<span class="name"></span>
<span class="since">since<br><b>1.0.0</b></span>
</section>
<!-- The menu bar-->
<nav class="menubar">
<a href="#description" onclick="goToPage('#description')">
<div class="text" id="menu_description">Description</div>
</a>
<a href="#summary" onclick="goToPage('#summary')">
<div class="text" id="menu_summary">Summary</div>
</a>
<a href="#details" onclick="goToPage('#details')">
<div class="text" id="menu_details">Details</div>
</a>
<a href="#source" onclick="alert('unimplemented')">
<div class="text" style="opacity: 40%;" id="menu_source">Source</div>
</a>
<div class="text empty"></div>
<nav class="descr_index" id="descr_index">
</nav>
</nav>
</header>
<!-- The scrollable content area -->
<section class="content">
<!-- The description section -->
<section id="description" class="description" >
</section>
<hr>
<!-- The summary section -->
<section id="summary" class="summary">
<!-- The item subsection (only for modules) -->
<section id="item_section" style="display: none;">
<h4>Items: </h4>
<table id="item_table">
</table>
<template id="item_row">
<tr class="item_row">
<td class="icon"><img src="img/arrow/empty.png" /></td>
<td class="shortname"><a href="#"></a></td>
<td class="shortdesc"></td>
</tr>
</template>
</section>
<!-- The item declaration subsection (for most items) -->
<section id="declaration_section" style="display: none;">
<h4>Declaration: </h4>
<pre id="declaration" class="summary fiedls_declaration"></pre>
</section>
<!-- The implementation list subsection (for types and traits) -->
<section id="special_impl_section" style="display: none;">
<h4 class="impl_type">Special Implementations:</h4>
<span id="special_impl_list" class="impl"></span>
</section>
<section id="other_impl_section" style="display: none;">
<h4 class="impl_type">Other Implementations:</h4>
<span id="other_impl_list" class="impl"></span>
</section>
<section id="foreign_impl_section" style="display: none;">
<h4 class="impl_type">Foreign Implementation:</h4>
<span id="foreign_impl_list" class="impl"></span>
</section>
<section id="Implementors_section" style="display: none;">
<h4 class="impl_type">Implementors:</h4>
<span id="implementor_list" class="impl"></span>
</section>
<!-- The method list subsection (for types and traits) -->
<section id="method_summary_section" style="display: none;">
<h4>
Items:
<img id="btn_operator" class="method_filter_button" src="img/arrow/operator.png" title="Toggle operator implementation display" />
<img id="btn_convert" class="method_filter_button" src="img/arrow/convert.png" title="Toggle conversion implementation display" />
<img id="btn_iterator" class="method_filter_button" src="img/arrow/iter.png" title="Toggle iterator functions display" />
<img id="btn_blanket" class="method_filter_button" src="img/arrow/blanket.png" title="Toggle blanket implementation display" />
<img id="btn_synthetic" class="method_filter_button" src="img/arrow/auto.png" title="Toggle synthetic implementation display" />
<select id="select_groupby">
<option value="name">Group by name</option>
<option value="impl">Group by impl</option>
<option value="return">Group by return type</option>
<option value="self">Group by self type</option>
</select>
</h4>
<table id="method_table">
</table>
<template id="group_row">
<tr class="group_row">
<td class="folder"><img src="img/arrow/open.png" /></td>
<td class="impldecl" colspan="5"></td>
</tr>
</template>
<template id="fn_row">
<tr class="fn_row">
<td class="folder"><img src="img/arrow/empty.png" /></td>
<td class="icon"><img src="img/item/fn.png" /></td>
<td class="shortname"><a href="#"></a></td>
<td class="fullname" style="display: none;"></td>
<td class="shortimpl"></td>
<td class="fullimpl" style="display: none;"></td>
<td class="shortdesc"></td>
<td class="fullimpl"></td>
</tr>
</template>
<template id="fn_subrow">
<tr class="fn_subrow">
<td class="folder"><img src="img/arrow/empty.png" /></td>
<td class="icon"><img src="img/arrow/empty.png" style="display:none;" /></td>
<td class="fullimpl" colspan="4"></td>
</tr>
</template>
</section>
</section>
<hr>
<!-- The details section -->
<section id="details" class="details">
</section>
</section>
</section>
</body>
</html>