]> git.lizzy.rs Git - rust.git/blob - src/librustdoc/html/templates/print_item.html
Port pgo.sh to Python
[rust.git] / src / librustdoc / html / templates / print_item.html
1 <div class="main-heading"> {#- -#}
2     <h1> {#- -#}
3         {{-typ-}}
4         {#- The breadcrumbs of the item path, like std::string -#}
5         {%- for component in path_components -%}
6         <a href="{{component.path|safe}}index.html">{{component.name}}</a>::<wbr>
7         {%- endfor -%}
8         <a class="{{item_type}}" href="#">{{name}}</a> {#- -#}
9         <button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"> {#- -#}
10         <img src="{{static_root_path|safe}}{{clipboard_svg}}" {# -#}
11                 width="19" height="18" {# -#}
12                 alt="Copy item path"> {#- -#}
13         </button> {#- -#}
14     </h1> {#- -#}
15     <span class="out-of-band"> {#- -#}
16         {% if !stability_since_raw.is_empty() %}
17         {{- stability_since_raw|safe }} · {# -#}
18         {% endif %}
19         {%- match src_href -%}
20             {%- when Some with (href) -%}
21                 <a class="srclink" href="{{href|safe}}">source</a> · {# -#}
22             {%- else -%}
23         {%- endmatch -%}
24         <button id="toggle-all-docs" title="collapse all docs"> {#- -#}
25             [<span>&#x2212;</span>] {#- -#}
26         </button> {#- -#}
27     </span> {#- -#}
28 </div> {#- -#}