Implement Display for File

This commit is contained in:
Matthias Beyer 2015-12-02 11:34:51 +01:00
parent 6eb7bee355
commit 535952c2a5

View file

@ -303,3 +303,20 @@ impl Debug for File {
}
}
impl<'a> Display for File<'a> {
fn fmt(&self, fmt: &mut Formatter) -> fmt::Result {
write!(fmt,
"[File] Owner : '{:?}'
FileID: '{:?}'
Header: '{:?}'
Data : '{:?}'",
self.owning_module,
self.header,
self.data,
self.id);
Ok(())
}
}