Add File::set_header()
This commit is contained in:
parent
68f66ca27d
commit
6ca4818302
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue