Impl Debug for Parser

This commit is contained in:
Matthias Beyer 2015-12-19 11:44:29 +01:00
parent d5af28d98d
commit 3212429c9e

View file

@ -171,3 +171,14 @@ impl<HP> Parser<HP> where
}
impl<HP> Debug for Parser<HP>
where HP: FileHeaderParser
{
fn fmt(&self, fmt: &mut Formatter) -> fmt::Result {
write!(fmt, "Parser<{:?}>", self.headerp);
Ok(())
}
}