feat(core): Event's should be comparable

This commit is contained in:
Alain Zscheile 2022-10-15 15:17:43 +02:00
parent bec8f6cfc2
commit a574fe6993

View file

@ -1,11 +1,11 @@
use core::cmp::Eq;
use core::cmp::{Eq, PartialOrd};
pub trait FlowData: Clone + Eq {}
impl<T> FlowData for T where T: Clone + Eq {}
/// This trait must be implemented for any type which should be used as an event
pub trait Event {
pub trait Event: Eq + PartialOrd {
type Data: FlowData;
type Err;