Replace title "Methods" with "Implementations"
This commit is contained in:
parent
d9312a8db3
commit
e17f36b82e
2 changed files with 12 additions and 12 deletions
|
@ -3413,8 +3413,8 @@ fn render_assoc_items(
|
||||||
write!(
|
write!(
|
||||||
w,
|
w,
|
||||||
"\
|
"\
|
||||||
<h2 id='methods' class='small-section-header'>\
|
<h2 id='implementations' class='small-section-header'>\
|
||||||
Methods<a href='#methods' class='anchor'></a>\
|
Implementations<a href='#implementations' class='anchor'></a>\
|
||||||
</h2>\
|
</h2>\
|
||||||
"
|
"
|
||||||
);
|
);
|
||||||
|
@ -3475,10 +3475,10 @@ fn render_assoc_items(
|
||||||
write!(
|
write!(
|
||||||
w,
|
w,
|
||||||
"\
|
"\
|
||||||
<h2 id='implementations' class='small-section-header'>\
|
<h2 id='trait-implementations' class='small-section-header'>\
|
||||||
Trait Implementations<a href='#implementations' class='anchor'></a>\
|
Trait Implementations<a href='#trait-implementations' class='anchor'></a>\
|
||||||
</h2>\
|
</h2>\
|
||||||
<div id='implementations-list'>{}</div>",
|
<div id='trait-implementations-list'>{}</div>",
|
||||||
impls
|
impls
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -4097,8 +4097,8 @@ fn sidebar_assoc_items(it: &clean::Item) -> String {
|
||||||
ret.sort();
|
ret.sort();
|
||||||
if !ret.is_empty() {
|
if !ret.is_empty() {
|
||||||
out.push_str(&format!(
|
out.push_str(&format!(
|
||||||
"<a class=\"sidebar-title\" href=\"#methods\">Methods\
|
"<a class=\"sidebar-title\" href=\"#implementations\">Methods</a>\
|
||||||
</a><div class=\"sidebar-links\">{}</div>",
|
<div class=\"sidebar-links\">{}</div>",
|
||||||
ret.join("")
|
ret.join("")
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
@ -4191,7 +4191,7 @@ fn sidebar_assoc_items(it: &clean::Item) -> String {
|
||||||
|
|
||||||
if !concrete_format.is_empty() {
|
if !concrete_format.is_empty() {
|
||||||
out.push_str(
|
out.push_str(
|
||||||
"<a class=\"sidebar-title\" href=\"#implementations\">\
|
"<a class=\"sidebar-title\" href=\"#trait-implementations\">\
|
||||||
Trait Implementations</a>",
|
Trait Implementations</a>",
|
||||||
);
|
);
|
||||||
out.push_str(&format!("<div class=\"sidebar-links\">{}</div>", concrete_format));
|
out.push_str(&format!("<div class=\"sidebar-links\">{}</div>", concrete_format));
|
||||||
|
|
|
@ -2180,7 +2180,7 @@ function getSearchElement() {
|
||||||
if (collapse) {
|
if (collapse) {
|
||||||
toggleAllDocs(pageId, true);
|
toggleAllDocs(pageId, true);
|
||||||
} else if (getCurrentValue("rustdoc-auto-hide-trait-implementations") !== "false") {
|
} else if (getCurrentValue("rustdoc-auto-hide-trait-implementations") !== "false") {
|
||||||
var impl_list = document.getElementById("implementations-list");
|
var impl_list = document.getElementById("trait-implementations-list");
|
||||||
|
|
||||||
if (impl_list !== null) {
|
if (impl_list !== null) {
|
||||||
onEachLazy(impl_list.getElementsByClassName("collapse-toggle"), function(e) {
|
onEachLazy(impl_list.getElementsByClassName("collapse-toggle"), function(e) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue