on master help sign in
Improve documentation for Input API
a8d7141Ethan P
src/pretty_printer.rs+1−1
@@ -310,6 +310,7 @@ impl<'a> PrettyPrinter<'a> {
310 }
310 }
311}
311}
312
312
313+/// An input source for the pretty printer.
313pub struct Input<'a> {
314pub struct Input<'a> {
314 input: BatInput<'a>,
315 input: BatInput<'a>,
315}
316}
@@ -343,7 +344,6 @@ impl<'a> Input<'a> {
343 }
344 }
344
345
345 /// The description for the type of input (e.g. "File")
346 /// The description for the type of input (e.g. "File")
346− /// This defaults to "File" for files, and nothing for other inputs.
347 pub fn kind(mut self, kind: impl Into<String>) -> Self {
347 pub fn kind(mut self, kind: impl Into<String>) -> Self {
348 let kind = kind.into();
348 let kind = kind.into();
349 self.input
349 self.input