Merge pull request #296 from matthiasbeyer/libimagnotes/deref-note

impl Deref for Note
This commit is contained in:
Matthias Beyer 2016-03-26 20:41:03 +01:00
commit e7a0eed1c1

View file

@ -161,6 +161,16 @@ impl<'a> FromStoreId for Note<'a> {
}
impl<'a> Deref for Note<'a> {
type Target = FileLockEntry<'a>;
fn deref(&self) -> &FileLockEntry<'a> {
&self.entry
}
}
pub struct NoteIterator<'a> {
store: &'a Store,
iditer: StoreIdIterator,