Add File::set_data()
This commit is contained in:
parent
6b105f41d2
commit
8ac798687a
1 changed files with 7 additions and 0 deletions
|
@ -59,6 +59,13 @@ impl File {
|
|||
&self.data
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the data
|
||||
*/
|
||||
pub fn set_data(&mut self, new_data: String) {
|
||||
self.data = new_data;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the (header, data) of the file
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue