Merge pull request #296 from matthiasbeyer/libimagnotes/deref-note
impl Deref for Note
This commit is contained in:
commit
e7a0eed1c1
1 changed files with 10 additions and 0 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue