Add File::set_data()

This commit is contained in:
Matthias Beyer 2016-01-02 19:44:00 +01:00
parent 6b105f41d2
commit 8ac798687a

View file

@ -59,6 +59,13 @@ impl File {
&self.data &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 * Set the (header, data) of the file
*/ */