pub trait WidgetAction: 'static {
    // Required methods
    fn type_id(&self) -> TypeId;
    fn box_clone(&self) -> Box<dyn WidgetAction>;
}

Required Methods§

source

fn type_id(&self) -> TypeId

source

fn box_clone(&self) -> Box<dyn WidgetAction>

Implementations§

source§

impl dyn WidgetAction

source

pub fn is<T: WidgetAction + 'static>(&self) -> bool

source

pub fn cast<T: WidgetAction + 'static + Default + Clone>(&self) -> T

Trait Implementations§

source§

impl Clone for Box<dyn WidgetAction>

source§

fn clone(&self) -> Box<dyn WidgetAction>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Implementors§

source§

impl<T: 'static + ?Sized + Clone> WidgetAction for T