Auto merge of #132 - matthiasbeyer:libimagstore/entry-getter, r=matthiasbeyer
Libimagstore/entry getter Adds some getters to the `Entry` type.
This commit is contained in:
commit
26a42379c0
1 changed files with 24 additions and 0 deletions
|
@ -14,3 +14,27 @@ pub struct Entry {
|
|||
content: EntryContent,
|
||||
}
|
||||
|
||||
impl Entry {
|
||||
|
||||
pub fn get_location(&self) -> &StoreId {
|
||||
&self.location
|
||||
}
|
||||
|
||||
pub fn get_header(&self) -> &EntryHeader {
|
||||
&self.header
|
||||
}
|
||||
|
||||
pub fn get_header_mut(&mut self) -> &mut EntryHeader {
|
||||
&mut self.header
|
||||
}
|
||||
|
||||
pub fn get_content(&self) -> &EntryContent {
|
||||
&self.content
|
||||
}
|
||||
|
||||
pub fn get_content_mut(&mut self) -> &mut EntryContent {
|
||||
&mut self.content
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue