diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2016-03-26 19:37:54 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2016-03-26 19:52:30 +0100 |
commit | cdbb71cea2cb14d44c645887339121056c3980db (patch) | |
tree | aab6a5bb16959ca809fd538a4c64dda54ed74602 /libimagnotes | |
parent | a36c213cecbdbeca9e74f07fde15bc41d1917253 (diff) |
impl Deref for Note
Diffstat (limited to 'libimagnotes')
-rw-r--r-- | libimagnotes/src/note.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libimagnotes/src/note.rs b/libimagnotes/src/note.rs index 46ac6c95..bd6b2f2d 100644 --- a/libimagnotes/src/note.rs +++ b/libimagnotes/src/note.rs @@ -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, |