Add File::set_header()

This commit is contained in:
Matthias Beyer 2015-12-28 21:25:33 +01:00
parent 68f66ca27d
commit 6ca4818302

View file

@ -40,6 +40,10 @@ impl File {
&self.header
}
pub fn set_header(&mut self, new_header: FileHeaderData) {
self.header = new_header;
}
pub fn data(&self) -> &String {
&self.data
}