pub trait ActionMapExt: IsA<ActionMap> + 'static {
// Provided methods
fn add_action(&self, action: &impl IsA<Action>) { ... }
fn lookup_action(&self, action_name: &str) -> Option<Action> { ... }
fn remove_action(&self, action_name: &str) { ... }
}
Expand description
Provided Methods§
Sourcefn add_action(&self, action: &impl IsA<Action>)
fn add_action(&self, action: &impl IsA<Action>)
Sourcefn lookup_action(&self, action_name: &str) -> Option<Action>
fn lookup_action(&self, action_name: &str) -> Option<Action>
Sourcefn remove_action(&self, action_name: &str)
fn remove_action(&self, action_name: &str)
Removes the named action from the action map.
If no action of this name is in the map then nothing happens.
§action_name
the name of the action
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.