]>
Commit | Line | Data |
---|---|---|
136023e0 XL |
1 | <!DOCTYPE html> {#- -#} |
2 | <html lang="en"> {#- -#} | |
3 | <head> {#- -#} | |
4 | <meta charset="utf-8"> {#- -#} | |
5 | <meta name="viewport" content="width=device-width, initial-scale=1.0"> {#- -#} | |
6 | <meta name="generator" content="rustdoc"> {#- -#} | |
7 | <meta name="description" content="{{page.description}}"> {#- -#} | |
8 | <meta name="keywords" content="{{page.keywords}}"> {#- -#} | |
9 | <title>{{page.title}}</title> {#- -#} | |
5099ac24 FG |
10 | <link rel="preload" as="font" type="font/woff2" crossorigin href="{{static_root_path|safe}}SourceSerif4-Regular.ttf.woff2"> {#- -#} |
11 | <link rel="preload" as="font" type="font/woff2" crossorigin href="{{static_root_path|safe}}FiraSans-Regular.woff2"> {#- -#} | |
12 | <link rel="preload" as="font" type="font/woff2" crossorigin href="{{static_root_path|safe}}FiraSans-Medium.woff2"> {#- -#} | |
13 | <link rel="preload" as="font" type="font/woff2" crossorigin href="{{static_root_path|safe}}SourceCodePro-Regular.ttf.woff2"> {#- -#} | |
14 | <link rel="preload" as="font" type="font/woff2" crossorigin href="{{static_root_path|safe}}SourceSerif4-Bold.ttf.woff2"> {#- -#} | |
15 | <link rel="preload" as="font" type="font/woff2" crossorigin href="{{static_root_path|safe}}SourceCodePro-Semibold.ttf.woff2"> {#- -#} | |
f2b60f7d | 16 | <link rel="stylesheet" {# -#} |
5099ac24 | 17 | href="{{static_root_path|safe}}normalize{{page.resource_suffix}}.css"> {#- -#} |
f2b60f7d | 18 | <link rel="stylesheet" {# -#} |
5099ac24 | 19 | href="{{static_root_path|safe}}rustdoc{{page.resource_suffix}}.css" {# -#} |
136023e0 | 20 | id="mainThemeStyle"> {#- -#} |
a2a8927a | 21 | {%- for theme in themes -%} |
f2b60f7d | 22 | <link rel="stylesheet" {# -#} |
5099ac24 | 23 | href="{{static_root_path|safe}}{{theme}}{{page.resource_suffix}}.css" {# -#} |
a2a8927a XL |
24 | {%- if theme == "light" -%} |
25 | id="themeStyle" | |
26 | {%- else -%} | |
27 | disabled | |
28 | {%- endif -%} | |
29 | > | |
30 | {%- endfor -%} | |
136023e0 | 31 | <script id="default-settings" {# -#} |
5099ac24 | 32 | {% for (k, v) in layout.default_settings %} |
136023e0 XL |
33 | data-{{k}}="{{v}}" |
34 | {%- endfor -%} | |
35 | ></script> {#- -#} | |
5099ac24 | 36 | <script src="{{static_root_path|safe}}storage{{page.resource_suffix}}.js"></script> {#- -#} |
923072b8 FG |
37 | {%- if page.css_class.contains("crate") -%} |
38 | <script defer src="{{page.root_path|safe}}crates{{page.resource_suffix}}.js"></script> {#- -#} | |
39 | {%- else if page.css_class == "source" -%} | |
40 | <script defer src="{{static_root_path|safe}}source-script{{page.resource_suffix}}.js"></script> {#- -#} | |
41 | <script defer src="{{page.root_path|safe}}source-files{{page.resource_suffix}}.js"></script> {#- -#} | |
064997fb | 42 | {%- else if !page.css_class.contains("mod") -%} |
923072b8 FG |
43 | <script defer src="sidebar-items{{page.resource_suffix}}.js"></script> {#- -#} |
44 | {%- endif -%} | |
5099ac24 | 45 | <script defer src="{{static_root_path|safe}}main{{page.resource_suffix}}.js"></script> {#- -#} |
3c0e092e | 46 | {%- if layout.scrape_examples_extension -%} |
5099ac24 | 47 | <script defer src="{{page.root_path|safe}}scrape-examples{{page.resource_suffix}}.js"></script> {#- -#} |
3c0e092e | 48 | {%- endif -%} |
136023e0 XL |
49 | <noscript> {#- -#} |
50 | <link rel="stylesheet" {# -#} | |
5099ac24 | 51 | href="{{static_root_path|safe}}noscript{{page.resource_suffix}}.css"> {#- -#} |
136023e0 | 52 | </noscript> {#- -#} |
5099ac24 | 53 | {%- if layout.css_file_extension.is_some() -%} |
f2b60f7d | 54 | <link rel="stylesheet" {# -#} |
5099ac24 | 55 | href="{{static_root_path|safe}}theme{{page.resource_suffix}}.css"> {#- -#} |
136023e0 | 56 | {%- endif -%} |
5099ac24 | 57 | {%- if !layout.favicon.is_empty() -%} |
5e7ed085 | 58 | <link rel="icon" href="{{layout.favicon}}"> {#- -#} |
136023e0 | 59 | {%- else -%} |
136023e0 | 60 | <link rel="alternate icon" type="image/png" {# -#} |
5099ac24 | 61 | href="{{static_root_path|safe}}favicon-16x16{{page.resource_suffix}}.png"> {#- -#} |
136023e0 | 62 | <link rel="alternate icon" type="image/png" {# -#} |
5099ac24 | 63 | href="{{static_root_path|safe}}favicon-32x32{{page.resource_suffix}}.png"> {#- -#} |
94222f64 | 64 | <link rel="icon" type="image/svg+xml" {# -#} |
5099ac24 | 65 | href="{{static_root_path|safe}}favicon{{page.resource_suffix}}.svg"> {#- -#} |
136023e0 | 66 | {%- endif -%} |
5099ac24 | 67 | {{- layout.external_html.in_header|safe -}} |
136023e0 XL |
68 | </head> {#- -#} |
69 | <body class="rustdoc {{page.css_class}}"> {#- -#} | |
70 | <!--[if lte IE 11]> {#- -#} | |
71 | <div class="warning"> {#- -#} | |
72 | This old browser is unsupported and will most likely display funky things. {#- -#} | |
73 | </div> {#- -#} | |
74 | <![endif]--> {#- -#} | |
5099ac24 | 75 | {{- layout.external_html.before_content|safe -}} |
2b03887a | 76 | {%- if page.css_class != "source" -%} |
5099ac24 FG |
77 | <nav class="mobile-topbar"> {#- -#} |
78 | <button class="sidebar-menu-toggle">☰</button> {#- -#} | |
79 | <a class="sidebar-logo" href="{{page.root_path|safe}}{{krate_with_trailing_slash|safe}}index.html"> {#- -#} | |
a2a8927a | 80 | <div class="logo-container"> {#- -#} |
5099ac24 | 81 | {%- if !layout.logo.is_empty() -%} |
a2a8927a XL |
82 | <img src="{{layout.logo}}" alt="logo"> {#- -#} |
83 | {%- else -%} | |
5099ac24 | 84 | <img class="rust-logo" src="{{static_root_path|safe}}rust-logo{{page.resource_suffix}}.svg" alt="logo"> {#- -#} |
a2a8927a | 85 | {%- endif -%} |
064997fb | 86 | </div> {#- -#} |
136023e0 | 87 | </a> {#- -#} |
2b03887a | 88 | <h2></h2> {#- -#} |
064997fb | 89 | </nav> {#- -#} |
2b03887a | 90 | {%- endif -%} |
5099ac24 | 91 | <nav class="sidebar"> {#- -#} |
2b03887a | 92 | {%- if page.css_class != "source" -%} |
5099ac24 FG |
93 | <a class="sidebar-logo" href="{{page.root_path|safe}}{{krate_with_trailing_slash|safe}}index.html"> {#- -#} |
94 | <div class="logo-container"> {#- -#} | |
95 | {%- if !layout.logo.is_empty() %} | |
96 | <img src="{{layout.logo}}" alt="logo"> {#- -#} | |
97 | {%- else -%} | |
98 | <img class="rust-logo" src="{{static_root_path|safe}}rust-logo{{page.resource_suffix}}.svg" alt="logo"> {#- -#} | |
99 | {%- endif -%} | |
064997fb | 100 | </div> {#- -#} |
5099ac24 | 101 | </a> {#- -#} |
2b03887a | 102 | {%- endif -%} |
5099ac24 | 103 | {{- sidebar|safe -}} |
136023e0 | 104 | </nav> {#- -#} |
a2a8927a XL |
105 | <main> {#- -#} |
106 | <div class="width-limiter"> {#- -#} | |
2b03887a FG |
107 | <nav class="sub"> {#- -#} |
108 | {%- if page.css_class == "source" -%} | |
5099ac24 FG |
109 | <a class="sub-logo-container" href="{{page.root_path|safe}}{{krate_with_trailing_slash|safe}}index.html"> {#- -#} |
110 | {%- if !layout.logo.is_empty() %} | |
111 | <img src="{{layout.logo}}" alt="logo"> {#- -#} | |
a2a8927a | 112 | {%- else -%} |
5099ac24 | 113 | <img class="rust-logo" src="{{static_root_path|safe}}rust-logo{{page.resource_suffix}}.svg" alt="logo"> {#- -#} |
136023e0 | 114 | {%- endif -%} |
136023e0 | 115 | </a> {#- -#} |
2b03887a FG |
116 | {%- endif -%} |
117 | <form class="search-form"> {#- -#} | |
118 | <span></span> {#- This empty span is a hacky fix for Safari - See #93184 -#} | |
119 | <input {# -#} | |
120 | class="search-input" {# -#} | |
121 | name="search" {# -#} | |
122 | autocomplete="off" {# -#} | |
123 | spellcheck="false" {# -#} | |
124 | placeholder="Click or press ‘S’ to search, ‘?’ for more options…" {# -#} | |
125 | type="search"> {#- -#} | |
126 | <div id="help-button" title="help" tabindex="-1"> {#- -#} | |
127 | <a href="{{page.root_path|safe}}help.html">?</a> {#- -#} | |
128 | </div> {#- -#} | |
129 | <div id="settings-menu" tabindex="-1"> {#- -#} | |
130 | <a href="{{page.root_path|safe}}settings.html" title="settings"> {#- -#} | |
131 | <img width="22" height="22" alt="Change settings" {# -#} | |
132 | src="{{static_root_path|safe}}wheel{{page.resource_suffix}}.svg"> {#- -#} | |
133 | </a> {#- -#} | |
134 | </div> {#- -#} | |
135 | </form> {#- -#} | |
136 | </nav> {#- -#} | |
5099ac24 | 137 | <section id="main-content" class="content">{{- content|safe -}}</section> {#- -#} |
a2a8927a XL |
138 | </div> {#- -#} |
139 | </main> {#- -#} | |
5099ac24 | 140 | {{- layout.external_html.after_content|safe -}} |
136023e0 | 141 | <div id="rustdoc-vars" {# -#} |
5099ac24 | 142 | data-root-path="{{page.root_path|safe}}" {# -#} |
136023e0 | 143 | data-current-crate="{{layout.krate}}" {# -#} |
5099ac24 | 144 | data-themes="{{themes|join(",") }}" {# -#} |
a2a8927a XL |
145 | data-resource-suffix="{{page.resource_suffix}}" {# -#} |
146 | data-rustdoc-version="{{rustdoc_version}}" {# -#} | |
147 | > {#- -#} | |
064997fb | 148 | </div> {#- -#} |
136023e0 XL |
149 | </body> {#- -#} |
150 | </html> {#- -#} |