Implement File::{header(),data()} as header/data getters
This commit is contained in:
parent
d89977a09e
commit
90f08cc1f2
1 changed files with 8 additions and 0 deletions
|
@ -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())
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue