3
3
< head >
4
4
<!-- Book generated using mdBook -->
5
5
< meta charset ="UTF-8 ">
6
- < title > </ title >
7
-
8
-
6
+ < title > Page not found - The bindgen User Guide</ title >
9
7
< base href ="/ ">
10
-
11
8
12
9
13
10
<!-- Custom HTML head -->
14
11
15
-
16
-
17
- < meta content ="text/html; charset=utf-8 " http-equiv ="Content-Type ">
18
- < meta name ="description " content ="`bindgen` automatically generates Rust FFI bindings to C and C++ libraries. ">
12
+ < meta name ="description " content ="`bindgen` automatically generates Rust FFI bindings to C and C++ libraries. ">
19
13
< meta name ="viewport " content ="width=device-width, initial-scale=1 ">
20
14
< meta name ="theme-color " content ="#ffffff " />
21
15
22
-
23
16
< link rel ="icon " href ="favicon.svg ">
24
-
25
-
26
17
< link rel ="shortcut icon " href ="favicon.png ">
27
-
28
18
< link rel ="stylesheet " href ="css/variables.css ">
29
19
< link rel ="stylesheet " href ="css/general.css ">
30
20
< link rel ="stylesheet " href ="css/chrome.css ">
31
-
32
21
< link rel ="stylesheet " href ="css/print.css " media ="print ">
33
-
34
22
35
23
<!-- Fonts -->
36
24
< link rel ="stylesheet " href ="FontAwesome/css/font-awesome.css ">
37
-
38
25
< link rel ="stylesheet " href ="fonts/fonts.css ">
39
-
40
26
41
27
<!-- Highlight.js Stylesheets -->
42
28
< link rel ="stylesheet " href ="highlight.css ">
43
29
< link rel ="stylesheet " href ="tomorrow-night.css ">
44
30
< link rel ="stylesheet " href ="ayu-highlight.css ">
45
31
46
32
<!-- Custom theme stylesheets -->
47
-
48
33
49
-
50
34
</ head >
51
35
< body >
36
+ < div id ="body-container ">
52
37
<!-- Provide site root to javascript -->
53
- < script type =" text/javascript " >
38
+ < script >
54
39
var path_to_root = "" ;
55
40
var default_theme = window . matchMedia ( "(prefers-color-scheme: dark)" ) . matches ? "navy" : "light" ;
56
41
</ script >
57
42
58
43
<!-- Work around some values being stored in localStorage wrapped in quotes -->
59
- < script type =" text/javascript " >
44
+ < script >
60
45
try {
61
46
var theme = localStorage . getItem ( 'mdbook-theme' ) ;
62
47
var sidebar = localStorage . getItem ( 'mdbook-sidebar' ) ;
72
57
</ script >
73
58
74
59
<!-- Set the theme before any content is loaded, prevents flash -->
75
- < script type =" text/javascript " >
60
+ < script >
76
61
var theme ;
77
62
try { theme = localStorage . getItem ( 'mdbook-theme' ) ; } catch ( e ) { }
78
63
if ( theme === null || theme === undefined ) { theme = default_theme ; }
84
69
</ script >
85
70
86
71
<!-- Hide / unhide sidebar before it is displayed -->
87
- < script type =" text/javascript " >
72
+ < script >
88
73
var html = document . querySelector ( 'html' ) ;
89
- var sidebar = 'hidden' ;
74
+ var sidebar = null ;
90
75
if ( document . body . clientWidth >= 1080 ) {
91
76
try { sidebar = localStorage . getItem ( 'mdbook-sidebar' ) ; } catch ( e ) { }
92
77
sidebar = sidebar || 'visible' ;
78
+ } else {
79
+ sidebar = 'hidden' ;
93
80
}
94
81
html . classList . remove ( 'sidebar-visible' ) ;
95
82
html . classList . add ( "sidebar-" + sidebar ) ;
102
89
< div id ="sidebar-resize-handle " class ="sidebar-resize-handle "> </ div >
103
90
</ nav >
104
91
92
+ <!-- Track and set sidebar scroll position -->
93
+ < script >
94
+ var sidebarScrollbox = document . querySelector ( '#sidebar .sidebar-scrollbox' ) ;
95
+ sidebarScrollbox . addEventListener ( 'click' , function ( e ) {
96
+ if ( e . target . tagName === 'A' ) {
97
+ sessionStorage . setItem ( 'sidebar-scroll' , sidebarScrollbox . scrollTop ) ;
98
+ }
99
+ } , { passive : true } ) ;
100
+ var sidebarScrollTop = sessionStorage . getItem ( 'sidebar-scroll' ) ;
101
+ sessionStorage . removeItem ( 'sidebar-scroll' ) ;
102
+ if ( sidebarScrollTop ) {
103
+ // preserve sidebar scroll position when navigating via links within sidebar
104
+ sidebarScrollbox . scrollTop = sidebarScrollTop ;
105
+ } else {
106
+ // scroll sidebar to current active section when navigating via "next/previous chapter" buttons
107
+ var activeSection = document . querySelector ( '#sidebar .active' ) ;
108
+ if ( activeSection ) {
109
+ activeSection . scrollIntoView ( { block : 'center' } ) ;
110
+ }
111
+ }
112
+ </ script >
113
+
105
114
< div id ="page-wrapper " class ="page-wrapper ">
106
115
107
116
< div class ="page ">
108
-
109
- < div id ="menu-bar-hover-placeholder "> </ div >
110
- < div id ="menu-bar " class ="menu-bar sticky bordered ">
117
+ < div id ="menu-bar-hover-placeholder "> </ div >
118
+ < div id ="menu-bar " class ="menu-bar sticky ">
111
119
< div class ="left-buttons ">
112
120
< button id ="sidebar-toggle " class ="icon-button " type ="button " title ="Toggle Table of Contents " aria-label ="Toggle Table of Contents " aria-controls ="sidebar ">
113
121
< i class ="fa fa-bars "> </ i >
116
124
< i class ="fa fa-paint-brush "> </ i >
117
125
</ button >
118
126
< ul id ="theme-list " class ="theme-popup " aria-label ="Themes " role ="menu ">
119
- < li role ="none "> < button role ="menuitem " class ="theme " id ="light "> Light (default) </ button > </ li >
127
+ < li role ="none "> < button role ="menuitem " class ="theme " id ="light "> Light</ button > </ li >
120
128
< li role ="none "> < button role ="menuitem " class ="theme " id ="rust "> Rust</ button > </ li >
121
129
< li role ="none "> < button role ="menuitem " class ="theme " id ="coal "> Coal</ button > </ li >
122
130
< li role ="none "> < button role ="menuitem " class ="theme " id ="navy "> Navy</ button > </ li >
123
131
< li role ="none "> < button role ="menuitem " class ="theme " id ="ayu "> Ayu</ button > </ li >
124
132
</ ul >
125
-
126
133
< button id ="search-toggle " class ="icon-button " type ="button " title ="Search. (Shortkey: s) " aria-label ="Toggle Searchbar " aria-expanded ="false " aria-keyshortcuts ="S " aria-controls ="searchbar ">
127
134
< i class ="fa fa-search "> </ i >
128
135
</ button >
129
-
130
136
</ div >
131
137
132
138
< h1 class ="menu-title "> The bindgen User Guide</ h1 >
133
139
134
140
< div class ="right-buttons ">
135
-
136
141
< a href ="print.html " title ="Print this book " aria-label ="Print this book ">
137
142
< i id ="print-button " class ="fa fa-print "> </ i >
138
143
</ a >
139
-
140
-
141
144
< a href ="https://github.com/rust-lang/rust-bindgen " title ="Git repository " aria-label ="Git repository ">
142
145
< i id ="git-repository-button " class ="fa fa-github "> </ i >
143
146
</ a >
144
-
147
+
145
148
</ div >
146
149
</ div >
147
150
148
-
149
151
< div id ="search-wrapper " class ="hidden ">
150
152
< form id ="searchbar-outer " class ="searchbar-outer ">
151
- < input type ="search " name =" search " id ="searchbar " name ="searchbar " placeholder ="Search this book ... " aria-controls ="searchresults-outer " aria-describedby ="searchresults-header ">
153
+ < input type ="search " id ="searchbar " name ="searchbar " placeholder ="Search this book ... " aria-controls ="searchresults-outer " aria-describedby ="searchresults-header ">
152
154
</ form >
153
155
< div id ="searchresults-outer " class ="searchresults-outer hidden ">
154
156
< div id ="searchresults-header " class ="searchresults-header "> </ div >
155
157
< ul id ="searchresults ">
156
158
</ ul >
157
159
</ div >
158
160
</ div >
159
-
160
161
161
162
<!-- Apply ARIA attributes after the sidebar and the sidebar toggle button are added to the DOM -->
162
- < script type =" text/javascript " >
163
+ < script >
163
164
document . getElementById ( 'sidebar-toggle' ) . setAttribute ( 'aria-expanded' , sidebar === 'visible' ) ;
164
165
document . getElementById ( 'sidebar' ) . setAttribute ( 'aria-hidden' , sidebar !== 'visible' ) ;
165
166
Array . from ( document . querySelectorAll ( '#sidebar a' ) ) . forEach ( function ( link ) {
@@ -169,58 +170,45 @@ <h1 class="menu-title">The bindgen User Guide</h1>
169
170
170
171
< div id ="content " class ="content ">
171
172
< main >
172
- < h1 > < a class =" header " href =" # document-not-found-404 " id =" document-not-found-404 "> Document not found (404)</ a > </ h1 >
173
+ < h1 id =" document-not-found-404 "> < a class =" header " href =" # document-not-found-404 "> Document not found (404)</ a > </ h1 >
173
174
< p > This URL is invalid, sorry. Please use the navigation bar or search to continue.</ p >
174
175
175
176
</ main >
176
177
177
178
< nav class ="nav-wrapper " aria-label ="Page navigation ">
178
179
<!-- Mobile navigation buttons -->
179
-
180
180
181
-
182
181
183
182
< div style ="clear: both "> </ div >
184
183
</ nav >
185
184
</ div >
186
185
</ div >
187
186
188
187
< nav class ="nav-wide-wrapper " aria-label ="Page navigation ">
189
-
190
188
191
-
192
189
</ nav >
193
190
194
191
</ div >
195
192
196
-
197
193
198
-
199
194
200
-
201
195
202
-
203
- < script type ="text/javascript ">
196
+ < script >
204
197
window . playground_copyable = true ;
205
198
</ script >
206
-
207
199
208
-
209
200
210
-
211
- < script src ="elasticlunr.min.js " type ="text/javascript " charset ="utf-8 "> </ script >
212
- < script src ="mark.min.js " type ="text/javascript " charset ="utf-8 "> </ script >
213
- < script src ="searcher.js " type ="text/javascript " charset ="utf-8 "> </ script >
214
-
201
+ < script src ="elasticlunr.min.js "> </ script >
202
+ < script src ="mark.min.js "> </ script >
203
+ < script src ="searcher.js "> </ script >
215
204
216
- < script src ="clipboard.min.js " type =" text/javascript " charset =" utf-8 " > </ script >
217
- < script src ="highlight.js " type =" text/javascript " charset =" utf-8 " > </ script >
218
- < script src ="book.js " type =" text/javascript " charset =" utf-8 " > </ script >
205
+ < script src ="clipboard.min.js "> </ script >
206
+ < script src ="highlight.js "> </ script >
207
+ < script src ="book.js "> </ script >
219
208
220
209
<!-- Custom JS scripts -->
221
-
222
210
223
-
224
211
212
+ </ div >
225
213
</ body >
226
214
</ html >
0 commit comments