]> git.lizzy.rs Git - rust.git/blobdiff - src/librustdoc/html/format.rs
Sort auto trait and blanket implementations display
[rust.git] / src / librustdoc / html / format.rs
index 4cde868201eeffdef8f948d411f446fa90131cb1..fd620d467de48dd05a785dc17e6a46deb488c321 100644 (file)
@@ -63,6 +63,13 @@ impl Buffer {
         }
     }
 
+    crate fn new() -> Buffer {
+        Buffer {
+            for_html: false,
+            buffer: String::new(),
+        }
+    }
+
     crate fn is_empty(&self) -> bool {
         self.buffer.is_empty()
     }
@@ -106,6 +113,10 @@ impl Buffer {
             write!(self, "{:#}", t);
         }
     }
+
+    crate fn is_for_html(&self) -> bool {
+        self.for_html
+    }
 }
 
 /// Wrapper struct for properly emitting a function or method declaration.