summaryrefslogtreecommitdiffstats
path: root/src/librustdoc/html/templates/print_item.html
blob: 3a1867b7feba3eda5980b0b3d8235fe59c8ab234 (plain)
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
<div class="main-heading"> {#- -#}
    <h1> {#- -#}
        {{-typ-}}
        {#- The breadcrumbs of the item path, like std::string -#}
        {%- for component in path_components -%}
        <a href="{{component.path|safe}}index.html">{{component.name}}</a>::<wbr>
        {%- endfor -%}
        <a class="{{item_type}}" href="#">{{name}}</a> {#- -#}
        <button id="copy-path" title="Copy item path to clipboard"> {#- -#}
        <img src="{{static_root_path|safe}}{{clipboard_svg}}" {# -#}
                width="19" height="18" {# -#}
                alt="Copy item path"> {#- -#}
        </button> {#- -#}
    </h1> {#- -#}
    <span class="out-of-band"> {#- -#}
        {% if !stability_since_raw.is_empty() %}
        {{- stability_since_raw|safe }} · {# -#}
        {% endif %}
        {%- match src_href -%}
            {%- when Some with (href) -%}
                <a class="srclink" href="{{href|safe}}">source</a> · {# -#}
            {%- else -%}
        {%- endmatch -%}
        <button id="toggle-all-docs" title="collapse all docs"> {#- -#}
            [<span>&#x2212;</span>] {#- -#}
        </button> {#- -#}
    </span> {#- -#}
</div> {#- -#}