Implement File::{header(),data()} as header/data getters

This commit is contained in:
Matthias Beyer 2015-12-02 11:32:59 +01:00
parent d89977a09e
commit 90f08cc1f2

View file

@ -258,6 +258,14 @@ impl File {
f
}
pub fn header(&self) -> FileHeaderData {
self.header.clone()
}
pub fn data(&self) -> String {
self.data.clone()
}
pub fn contents(&self) -> (FileHeaderData, String) {
(self.header.clone(), self.data.clone())
}