summaryrefslogtreecommitdiffstats
path: root/libimagnotes
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2016-03-26 19:37:54 +0100
committerMatthias Beyer <mail@beyermatthias.de>2016-03-26 19:52:30 +0100
commitcdbb71cea2cb14d44c645887339121056c3980db (patch)
treeaab6a5bb16959ca809fd538a4c64dda54ed74602 /libimagnotes
parenta36c213cecbdbeca9e74f07fde15bc41d1917253 (diff)
impl Deref for Note
Diffstat (limited to 'libimagnotes')
-rw-r--r--libimagnotes/src/note.rs10
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,