Impl FilePrinter for DebugPrinter ::print_file_custom()

This commit is contained in:
Matthias Beyer 2015-12-28 13:56:20 +01:00
parent fc42d6b4bf
commit f0c186f33b

View file

@ -58,6 +58,14 @@ impl FilePrinter for DebugPrinter {
}
}
fn print_file_custom<F>(&self, file: Rc<RefCell<File>>, f: &F)
where F: Fn(Rc<RefCell<File>>) -> String
{
if self.debug {
debug!("[DebugPrinter] ->\n{:?}", f(file));
}
}
}
struct SimplePrinter {