[−][src]Trait gui::EventChain
A trait for chaining of events.
Required methods
fn chain<ES>(self, event: ES) -> ChainEvent<ED> where
ES: Into<ChainEvent<ED>>,
ES: Into<ChainEvent<ED>>,
Chain together two events.
The given event will effectively be appended to the current one and, hence, be handled after the first one got processed.
fn chain_opt<ES>(self, event: Option<ES>) -> ChainEvent<ED> where
ES: Into<ChainEvent<ED>>,
ES: Into<ChainEvent<ED>>,
Chain together an event with an optional event.
This method returns the chain of the first event with the second one, if present, or otherwise just returns the first one.
Implementors
impl<ES, ED> EventChain<ED> for ES where
ES: Into<ChainEvent<ED>>,
[src]
ES: Into<ChainEvent<ED>>,
fn chain<E>(self, event: E) -> ChainEvent<ED> where
E: Into<ChainEvent<ED>>,
[src]
E: Into<ChainEvent<ED>>,
fn chain_opt<E>(self, event: Option<E>) -> ChainEvent<ED> where
E: Into<ChainEvent<ED>>,
[src]
E: Into<ChainEvent<ED>>,