Skip to main content

ActionControl

Trait ActionControl 

Source
pub trait ActionControl<I>: Sized {
    // Required methods
    fn bind_action(self, binding: ActionBinding<I>) -> Self;
    fn unavailable(self) -> Self;
}
Expand description

A toolkit control whose committed value I can invoke an action.

Required Methods§

Source

fn bind_action(self, binding: ActionBinding<I>) -> Self

Invoke binding with the control’s committed value.

Source

fn unavailable(self) -> Self

Present the control disabled: its action is not available.

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.

Implementors§