make EventHandler partialeq
This commit is contained in:
1 parent
58c01253e5
commit
ebacc7b709
1 file changed
+6
@@ -168,6 +168,12 @@ impl<T> Clone for EventHandler<T> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl<T> PartialEq for EventHandler<T> {
|
||||||
|
fn eq(&self, other: &Self) -> bool {
|
||||||
|
Rc::ptr_eq(&self.callback, &other.callback)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
impl<T> Default for EventHandler<T> {
|
impl<T> Default for EventHandler<T> {
|
||||||
fn default() -> Self {
|
fn default() -> Self {
|
||||||
Self {
|
Self {
|
||||||
|
|||||||
Reference in new issue
Block a user