First step to generic trait impls
This commit is contained in:
parent
54ea8eb232
commit
39849d5128
3 changed files with 114 additions and 20 deletions
|
@ -2082,6 +2082,7 @@ where F: Fn(&mut fmt::Formatter) -> fmt::Result {
|
|||
impl<'a> fmt::Display for Item<'a> {
|
||||
fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
|
||||
debug_assert!(!self.item.is_stripped());
|
||||
println!("=> {:?}", self.item.name);
|
||||
// Write the breadcrumb trail header for the top
|
||||
write!(fmt, "<h1 class='fqn'><span class='in-band'>")?;
|
||||
match self.item.inner {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue