about summary refs log tree commit diff
path: root/src/librustdoc/html/templates/print_item.html
blob: 640fd3dfee49872ffd367b89f5db1e17f2986fd3 (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
29
30
31
32
33
<div class="main-heading">
    {% if !path_components.is_empty() %}
    <div class="rustdoc-breadcrumbs">
        {% for (i, component) in path_components.iter().enumerate() %}
            {% if i != 0 %}
                ::<wbr>
            {% endif %}
            <a href="{{component.path|safe}}index.html">{{component.name}}</a>
        {% endfor %}
    </div>
    {% endif %}
    <h1>
        {{typ}}
        <span{% if item_type != "mod" +%} class="{{item_type}}"{% endif %}>
        {{name|wrapped|safe}}
        </span>&nbsp;{# #}
        <button id="copy-path" title="Copy item path to clipboard"> {# #}
            Copy item path {# #}
        </button> {# #}
    </h1> {# #}
    <rustdoc-toolbar></rustdoc-toolbar> {# #}
    <span class="sub-heading">
        {% if !stability_since_raw.is_empty() %}
        {{ stability_since_raw|safe +}}
        {% endif %}
        {% match src_href %}
            {% when Some with (href) %}
                {% if !stability_since_raw.is_empty() +%} · {%+ endif %}
                <a class="src" href="{{href|safe}}">Source</a> {#+ #}
            {% else %}
        {% endmatch %}
    </span> {# #}
</div> {# #}