feat(core): Event's should be comparable
This commit is contained in:
parent
bec8f6cfc2
commit
a574fe6993
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue