", {
if item.is_struct() {
"struct"
} else if item.is_enum() {
@@ -2121,7 +2124,7 @@ fn item_module(w: &mut Buffer, cx: &Context, item: &clean::Item, items: &[clean:
let (short, name) = item_ty_to_strs(&myty.unwrap());
write!(
w,
- "
",
id = cx.derive_id(short.to_owned()),
name = name
@@ -2168,7 +2171,7 @@ fn item_module(w: &mut Buffer, cx: &Context, item: &clean::Item, items: &[clean:
clean::FunctionItem(ref func) | clean::ForeignFunctionItem(ref func)
if func.header.unsafety == hir::Unsafety::Unsafe =>
{
- "⚠"
+ "⚠"
}
_ => "",
};
@@ -2179,10 +2182,10 @@ fn item_module(w: &mut Buffer, cx: &Context, item: &clean::Item, items: &[clean:
let doc_value = myitem.doc_value().unwrap_or("");
write!(
w,
- "\
+ "
\
{name}{unsafety_flag} | \
- {stab_tags}{docs} | \
+ title=\"{title}\">{name}{unsafety_flag}\
+ {stab_tags}{docs} | \
",
name = *myitem.name.as_ref().unwrap(),
stab_tags = stability_tags(myitem, item),
@@ -2277,7 +2280,7 @@ fn short_stability(item: &clean::Item, cx: &Context, parent: Option<&clean::Item
message.push_str(&format!(": {}", html.into_string()));
}
stability.push(format!(
- "👎 {}
",
+ "👎 {}
",
message,
));
}
@@ -2291,7 +2294,7 @@ fn short_stability(item: &clean::Item, cx: &Context, parent: Option<&clean::Item
.map(|stab| (stab.level, stab.feature))
{
let mut message =
- "🔬 This is a nightly-only experimental API.".to_owned();
+ "🔬 This is a nightly-only experimental API.".to_owned();
let mut feature = format!("{}
", Escape(&feature.as_str()));
if let (Some(url), Some(issue)) = (&cx.shared.issue_tracker_base_url, issue) {
@@ -2320,7 +2323,7 @@ fn short_stability(item: &clean::Item, cx: &Context, parent: Option<&clean::Item
);
}
- stability.push(format!("{}
", message));
+ stability.push(format!("{}
", message));
}
let cfg = match (&item.attrs.cfg, parent.and_then(|p| p.attrs.cfg.as_ref())) {
@@ -2335,14 +2338,14 @@ fn short_stability(item: &clean::Item, cx: &Context, parent: Option<&clean::Item
cfg
);
if let Some(cfg) = cfg {
- stability.push(format!("{}
", cfg.render_long_html()));
+ stability.push(format!("{}
", cfg.render_long_html()));
}
stability
}
fn item_constant(w: &mut Buffer, cx: &Context, it: &clean::Item, c: &clean::Constant) {
- write!(w, "");
+ write!(w, "");
render_attributes(w, it, false);
write!(
@@ -2377,7 +2380,7 @@ fn item_constant(w: &mut Buffer, cx: &Context, it: &clean::Item, c: &clean::Cons
}
fn item_static(w: &mut Buffer, cx: &Context, it: &clean::Item, s: &clean::Static) {
- write!(w, "");
+ write!(w, "");
render_attributes(w, it, false);
write!(
w,
@@ -2402,7 +2405,7 @@ fn item_function(w: &mut Buffer, cx: &Context, it: &clean::Item, f: &clean::Func
f.generics.print()
)
.len();
- write!(w, "");
+ write!(w, "");
render_attributes(w, it, false);
write!(
w,
@@ -2526,7 +2529,7 @@ fn item_trait(w: &mut Buffer, cx: &Context, it: &clean::Item, t: &clean::Trait,
// Output the trait definition
wrap_into_docblock(w, |w| {
- write!(w, "");
+ write!(w, "");
render_attributes(w, it, true);
write!(
w,
@@ -2569,7 +2572,7 @@ fn item_trait(w: &mut Buffer, cx: &Context, it: &clean::Item, t: &clean::Trait,
write!(w, ";\n");
if pos < required.len() - 1 {
- write!(w, "");
+ write!(w, "");
}
}
if !required.is_empty() && !provided.is_empty() {
@@ -2586,7 +2589,7 @@ fn item_trait(w: &mut Buffer, cx: &Context, it: &clean::Item, t: &clean::Trait,
}
}
if pos < provided.len() - 1 {
- write!(w, "");
+ write!(w, "");
}
}
write!(w, "}}");
@@ -2600,15 +2603,15 @@ fn item_trait(w: &mut Buffer, cx: &Context, it: &clean::Item, t: &clean::Trait,
fn write_small_section_header(w: &mut Buffer, id: &str, title: &str, extra_content: &str) {
write!(
w,
- "