From 535952c2a50e50a36254a9a1ac0266b1278384e8 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Wed, 2 Dec 2015 11:34:51 +0100 Subject: [PATCH] Implement Display for File --- src/storage/file.rs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/storage/file.rs b/src/storage/file.rs index 5f3a7eb0..1f9026a5 100644 --- a/src/storage/file.rs +++ b/src/storage/file.rs @@ -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(()) + } + +} +