summaryrefslogtreecommitdiff
path: root/src/function.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/function.rs')
-rw-r--r--src/function.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/function.rs b/src/function.rs
index 1b7e6fe..141fcbe 100644
--- a/src/function.rs
+++ b/src/function.rs
@@ -160,3 +160,9 @@ impl<'lua> Function<'lua> {
}
}
}
+
+impl<'lua> PartialEq for Function<'lua> {
+ fn eq(&self, other: &Self) -> bool {
+ self.0 == other.0
+ }
+}