Trait WidgetActionTrait

Source
pub trait WidgetActionTrait:
    'static
    + Send
    + Sync {
    // Required methods
    fn ref_cast_type_id(&self) -> TypeId;
    fn debug_fmt(&self, f: &mut Formatter<'_>) -> Result;
    fn box_clone(&self) -> Box<dyn WidgetActionTrait>;
}

Required Methods§

Source

fn ref_cast_type_id(&self) -> TypeId

Source

fn debug_fmt(&self, f: &mut Formatter<'_>) -> Result

Source

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

Implementations§

Source§

impl dyn WidgetActionTrait

Source

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

Source

pub fn downcast_ref<T: WidgetActionTrait + 'static>(&self) -> Option<&T>

Source

pub fn downcast_mut<T: WidgetActionTrait + 'static>(&mut self) -> Option<&mut T>

Trait Implementations§

Source§

impl Clone for Box<dyn WidgetActionTrait>

Source§

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

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for dyn WidgetActionTrait

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Implementors§

Source§

impl<T: 'static + ?Sized + Clone + Debug + Send + Sync> WidgetActionTrait for T