Impl FilePrinter for DebugPrinter ::print_file_custom()
This commit is contained in:
parent
fc42d6b4bf
commit
f0c186f33b
1 changed files with 8 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue