EventExt

Trait EventExt 

Source
pub trait EventExt {
    // Required methods
    fn actions(&self) -> &[Action] ;
    fn widget_actions(&self) -> impl Iterator<Item = &WidgetAction>;
}

Required Methods§

Source

fn actions(&self) -> &[Action]

Returns &[Action] (either the event’s actions or an empty fallback).

Source

fn widget_actions(&self) -> impl Iterator<Item = &WidgetAction>

Filtered iterator over widget actions.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl EventExt for Event

Source§

fn actions(&self) -> &[Action]

Source§

fn widget_actions(&self) -> impl Iterator<Item = &WidgetAction>

Implementors§