pub trait WidgetAction: 'static {
// Required methods
fn type_id(&self) -> TypeId;
fn box_clone(&self) -> Box<dyn WidgetAction>;
}Required Methods§
Implementations§
Source§impl dyn WidgetAction
impl dyn WidgetAction
pub fn is<T: WidgetAction + 'static>(&self) -> bool
pub fn cast<T: WidgetAction + 'static + Default + Clone>(&self) -> T
Trait Implementations§
Source§impl Clone for Box<dyn WidgetAction>
impl Clone for Box<dyn WidgetAction>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more