Add Entry::set_content()

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
This commit is contained in:
Matthias Beyer 2019-10-25 19:35:04 +02:00
parent 447a73f438
commit e3db947e68

View file

@ -849,6 +849,11 @@ impl Entry {
&self.content
}
/// Set the content of the Entry
pub fn set_content(&mut self, content: EntryContent) {
self.content = content;
}
/// Get the content mutably of the Entry
pub fn get_content_mut(&mut self) -> &mut EntryContent {
&mut self.content