Skip to main content

Action

Trait Action 

Source
pub trait Action:
    Copy
    + PartialEq
    + Debug
    + 'static {
    const ALL: &'static [Self];

    // Required methods
    fn defaults() -> Keymap<Self>;
    fn name(self) -> &'static str;
    fn description(self) -> &'static str;
}
Expand description

A component action that can be bound to keys.

Required Associated Constants§

Source

const ALL: &'static [Self]

Every action, in the order they are documented.

Required Methods§

Source

fn defaults() -> Keymap<Self>

The component’s default shortcuts.

Source

fn name(self) -> &'static str

A short name, such as "Next".

Source

fn description(self) -> &'static str

One sentence describing what the action does.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl Action for iced_cube::forms::combobox::Action

Available on crate feature combobox only.
Source§

const ALL: &'static [Self]

Source§

impl Action for iced_cube::forms::select::Action

Available on crate feature select only.
Source§

const ALL: &'static [Self]

Source§

impl Action for iced_cube::layout::accordion::Action

Available on crate feature accordion only.
Source§

const ALL: &'static [Self]

Source§

impl Action for iced_cube::navigation::command::Action

Available on crate feature command only.
Source§

const ALL: &'static [Self]

Source§

impl Action for iced_cube::navigation::tabs::Action

Available on crate feature tabs only.
Source§

const ALL: &'static [Self]

Source§

impl Action for iced_cube::overlay::context_menu::Action

Available on crate feature context-menu only.
Source§

const ALL: &'static [Self]

Source§

impl Action for iced_cube::overlay::dialog::Action

Available on crate feature dialog only.
Source§

const ALL: &'static [Self]

Source§

impl Action for iced_cube::overlay::dropdown_menu::Action

Available on crate feature dropdown-menu only.
Source§

const ALL: &'static [Self]

Source§

impl Action for iced_cube::overlay::popover::Action

Available on crate feature popover only.
Source§

const ALL: &'static [Self]

Source§

impl Action for iced_cube::overlay::toast::Action

Available on crate feature toast only.
Source§

const ALL: &'static [Self]

Source§

impl Action for iced_cube::primitives::checkbox::Action

Available on crate feature checkbox only.
Source§

const ALL: &'static [Self]

Source§

impl Action for iced_cube::primitives::slider::Action

Available on crate feature slider only.
Source§

const ALL: &'static [Self]

Source§

impl Action for iced_cube::primitives::switch::Action

Available on crate feature switch only.
Source§

const ALL: &'static [Self]