mutable for code/data sections themselves

This commit is contained in:
NikVolf
2017-04-26 23:15:31 +03:00
parent 8a7afa3565
commit b11f34f2e5

View File

@ -538,6 +538,11 @@ impl ElementSection {
pub fn entries(&self) -> &[ElementSegment] {
&self.0
}
/// List of all data entries in the section (mutable)
pub fn entries_mut(&mut self) -> &mut Vec<ElementSegment> {
&mut self.0
}
}
impl Deserialize for ElementSection {
@ -581,6 +586,11 @@ impl DataSection {
pub fn entries(&self) -> &[DataSegment] {
&self.0
}
/// List of all data entries in the section (mutable)
pub fn entries_mut(&mut self) -> &mut Vec<DataSegment> {
&mut self.0
}
}
impl Deserialize for DataSection {