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:
Homu 2016-01-22 22:44:23 +09:00
commit 26a42379c0

View file

@ -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
}
}