Print the given `Ast` to the given writer. The writer must implement `fmt::Write`. Typical implementations of `fmt::Write` that can be used here are a `fmt::Formatter` (which is available in `fmt::Display` implementations) or a `&mut String`.
(&mut self, ast: &Ast, wtr: W)
| 71 | /// here are a `fmt::Formatter` (which is available in `fmt::Display` |
| 72 | /// implementations) or a `&mut String`. |
| 73 | pub fn print<W: fmt::Write>(&mut self, ast: &Ast, wtr: W) -> fmt::Result { |
| 74 | visitor::visit(ast, Writer { printer: self, wtr: wtr }) |
| 75 | } |
| 76 | } |
| 77 | |
| 78 | #[derive(Debug)] |
no test coverage detected