impl Deref for Note

This commit is contained in:
Matthias Beyer 2016-03-26 19:37:54 +01:00
parent a36c213cec
commit cdbb71cea2

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> { pub struct NoteIterator<'a> {
store: &'a Store, store: &'a Store,
iditer: StoreIdIterator, iditer: StoreIdIterator,