global_get_set

This commit is contained in:
Svyatoslav Nikolsky
2017-05-03 11:06:26 +03:00
parent 1498ce1ec1
commit cc3abac681
6 changed files with 107 additions and 40 deletions

View File

@ -409,6 +409,11 @@ impl GlobalSection {
pub fn entries(&self) -> &[GlobalEntry] {
&self.0
}
/// Mutable list of all global entries in the section
pub fn entries_mut(&mut self) -> &mut Vec<GlobalEntry> {
&mut self.0
}
}
impl Deserialize for GlobalSection {