Trait WidgetAction

Source
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