pub unsafe trait FromEvent: Sized {
fn is(ev: &Event) -> bool;
fn from(ev: Event) -> Result<Self, Event>;
}
Expand description
A helper trait implemented by all event subtypes.
pub unsafe trait FromEvent: Sized {
fn is(ev: &Event) -> bool;
fn from(ev: Event) -> Result<Self, Event>;
}
A helper trait implemented by all event subtypes.