pub trait ActionablePlus {
// Required methods
fn set_action<A: ActionName>(&self, value: A::Target)
where A::Target: ToVariant;
fn set_stateless_action<A: ActionName>(&self, unit_type: &())
where A::Target: EmptyType;
}Expand description
Type safe interface for gtk::prelude::ActionableExt.
Required Methods§
Sourcefn set_action<A: ActionName>(&self, value: A::Target)
fn set_action<A: ActionName>(&self, value: A::Target)
Set a new stateful action with a default state value.
Sourcefn set_stateless_action<A: ActionName>(&self, unit_type: &())
fn set_stateless_action<A: ActionName>(&self, unit_type: &())
Set a new stateless 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.