@@ -2243,14 +2243,7 @@ fn item_function(w: &mut fmt::Formatter, cx: &Context, it: &clean::Item,
2243
2243
2244
2244
fn render_implementor ( cx : & Context , implementor : & Impl , w : & mut fmt:: Formatter ,
2245
2245
implementor_dups : & FxHashMap < & str , ( DefId , bool ) > ) -> Result < ( ) , fmt:: Error > {
2246
- write ! ( w, "<li>" ) ?;
2247
- if let Some ( l) = ( Item { cx, item : & implementor. impl_item } ) . src_href ( ) {
2248
- write ! ( w, "<div class='out-of-band'>" ) ?;
2249
- write ! ( w, "<a class='srclink' href='{}' title='{}'>[src]</a>" ,
2250
- l, "goto source code" ) ?;
2251
- write ! ( w, "</div>" ) ?;
2252
- }
2253
- write ! ( w, "<code>" ) ?;
2246
+ write ! ( w, "<li><table class='table-display'><tbody><tr><td><code>" ) ?;
2254
2247
// If there's already another implementor that has the same abbridged name, use the
2255
2248
// full path, for example in `std::iter::ExactSizeIterator`
2256
2249
let use_absolute = match implementor. inner_impl ( ) . for_ {
@@ -2269,7 +2262,14 @@ fn render_implementor(cx: &Context, implementor: &Impl, w: &mut fmt::Formatter,
2269
2262
write ! ( w, ";</span>" ) ?;
2270
2263
}
2271
2264
}
2272
- writeln ! ( w, "</code></li>" ) ?;
2265
+ write ! ( w, "</code><td>" ) ?;
2266
+ if let Some ( l) = ( Item { cx, item : & implementor. impl_item } ) . src_href ( ) {
2267
+ write ! ( w, "<div class='out-of-band'>" ) ?;
2268
+ write ! ( w, "<a class='srclink' href='{}' title='{}'>[src]</a>" ,
2269
+ l, "goto source code" ) ?;
2270
+ write ! ( w, "</div>" ) ?;
2271
+ }
2272
+ writeln ! ( w, "</td></tr></tbody></table></li>" ) ?;
2273
2273
Ok ( ( ) )
2274
2274
}
2275
2275
@@ -3314,10 +3314,11 @@ fn render_impl(w: &mut fmt::Formatter, cx: &Context, i: &Impl, link: AssocItemLi
3314
3314
Some ( ref t) => format ! ( "impl-{}" , small_url_encode( & format!( "{:#}" , t) ) ) ,
3315
3315
None => "impl" . to_string ( ) ,
3316
3316
} ) ;
3317
- write ! ( w, "<h3 id='{}' class='impl'><span class='in-band'><code>{}</code>" ,
3317
+ write ! ( w, "<h3 id='{}' class='impl'><span class='in-band'><table class='table-display'>\
3318
+ <tbody><tr><td><code>{}</code>",
3318
3319
id, i. inner_impl( ) ) ?;
3319
3320
write ! ( w, "<a href='#{}' class='anchor'></a>" , id) ?;
3320
- write ! ( w, "</span><span class='out-of-band'>" ) ?;
3321
+ write ! ( w, "</span></td><td>< span class='out-of-band'>" ) ?;
3321
3322
let since = i. impl_item . stability . as_ref ( ) . map ( |s| & s. since [ ..] ) ;
3322
3323
if let Some ( l) = ( Item { item : & i. impl_item , cx : cx } ) . src_href ( ) {
3323
3324
write ! ( w, "<div class='ghost'></div>" ) ?;
@@ -3327,8 +3328,7 @@ fn render_impl(w: &mut fmt::Formatter, cx: &Context, i: &Impl, link: AssocItemLi
3327
3328
} else {
3328
3329
render_stability_since_raw ( w, since, outer_version) ?;
3329
3330
}
3330
- write ! ( w, "</span>" ) ?;
3331
- write ! ( w, "</h3>\n " ) ?;
3331
+ write ! ( w, "</span></td></tr></tbody></table></h3>" ) ?;
3332
3332
if let Some ( ref dox) = cx. shared . maybe_collapsed_doc_value ( & i. impl_item ) {
3333
3333
write ! ( w, "<div class='docblock'>{}</div>" ,
3334
3334
Markdown ( & * dox, & i. impl_item. links( ) ) ) ?;
@@ -3357,19 +3357,20 @@ fn render_impl(w: &mut fmt::Formatter, cx: &Context, i: &Impl, link: AssocItemLi
3357
3357
write ! ( w, "<h4 id='{}' class=\" {}\" >" , id, item_type) ?;
3358
3358
write ! ( w, "{}" , spotlight_decl( decl) ?) ?;
3359
3359
write ! ( w, "<span id='{}' class='invisible'>" , ns_id) ?;
3360
- write ! ( w, "<code>" ) ?;
3360
+ write ! ( w, "<table class='table-display'><tbody><tr><td>< code>" ) ?;
3361
3361
render_assoc_item ( w, item, link. anchor ( & id) , ItemType :: Impl ) ?;
3362
3362
write ! ( w, "</code>" ) ?;
3363
3363
if let Some ( l) = ( Item { cx, item } ) . src_href ( ) {
3364
- write ! ( w, "</span><span class='out-of-band'>" ) ?;
3364
+ write ! ( w, "</span></td><td>< span class='out-of-band'>" ) ?;
3365
3365
write ! ( w, "<div class='ghost'></div>" ) ?;
3366
3366
render_stability_since_raw ( w, item. stable_since ( ) , outer_version) ?;
3367
3367
write ! ( w, "<a class='srclink' href='{}' title='{}'>[src]</a>" ,
3368
3368
l, "goto source code" ) ?;
3369
3369
} else {
3370
+ write ! ( w, "</td><td>" ) ?;
3370
3371
render_stability_since_raw ( w, item. stable_since ( ) , outer_version) ?;
3371
3372
}
3372
- write ! ( w, "</span></h4>\n " ) ?;
3373
+ write ! ( w, "</td></tr></tbody></table></ span></h4>" ) ?;
3373
3374
}
3374
3375
}
3375
3376
clean:: TypedefItem ( ref tydef, _) => {
0 commit comments