Add Entry getters

This commit is contained in:
Matthias Beyer 2016-01-22 14:24:20 +01:00
parent 4811a3780e
commit c21bed3af9

View file

@ -14,3 +14,19 @@ 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_content(&self) -> &EntryContent {
&self.content
}
}