Trait input::generic_event::GenericEvent  
            
                [−]
            
        [src]
pub trait GenericEvent: Sized {
    fn event_id(&self) -> EventId;
    fn with_args<'a, F, U>(&'a self, f: F) -> U where F: FnMut(&Any) -> U;
    fn from_args(event_id: EventId, any: &Any, old_event: &Self) -> Option<Self>;
}Implemented by all events
Required Methods
fn event_id(&self) -> EventId
The id of this event.
fn with_args<'a, F, U>(&'a self, f: F) -> U where F: FnMut(&Any) -> U
Calls closure with arguments
fn from_args(event_id: EventId, any: &Any, old_event: &Self) -> Option<Self>
Converts from arguments to Self
Implementors
impl GenericEvent for Inputimpl<I: GenericEvent> GenericEvent for Event<I>