Trait rat_ftable::event::UsedEvent

source ·
pub trait UsedEvent {
    // Required method
    fn used_event(&self) -> bool;
}
Expand description

When composing several widgets, the minimum information from the outcome of the inner widget is, whether it used & consumed the event.

This allows shortcutting the event-handling and prevents double interactions with the event. The inner widget can special case an event, and the fallback behaviour on the outer layer should not run too.

Required Methods§

source

fn used_event(&self) -> bool

Implementations on Foreign Types§

source§

impl<V> UsedEvent for Option<V>
where V: UsedEvent,

source§

impl<V, E> UsedEvent for Result<V, E>
where V: UsedEvent,

Implementors§