Implement Display for File
This commit is contained in:
parent
6eb7bee355
commit
535952c2a5
1 changed files with 17 additions and 0 deletions
|
@ -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(())
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue