jensmemesclient/gui/src/util.rs
LordMZTE 172aff4ef4
Some checks failed
continuous-integration/drone/push Build is failing
first gui prototype
2021-04-01 21:41:34 +02:00

10 lines
247 B
Rust

use druid::Data;
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct EqData<T: 'static + PartialEq + Clone>(pub T);
impl<T: 'static + PartialEq + Clone> Data for EqData<T> {
fn same(&self, other: &Self) -> bool {
self == other
}
}