Trait Props

Source
pub trait Props:
    'static
    + Send
    + Sync
    + Any {
    // Required methods
    fn type_name(&self) -> &'static str;
    fn box_clone(&self) -> Box<dyn Props>;
    fn as_any(&self) -> &dyn Any;
    fn as_any_mut(&mut self) -> &mut dyn Any;
}
Expand description

Props trait - implemented by all component props types

Required Methods§

Source

fn type_name(&self) -> &'static str

Get the type name for debugging

Source

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

Clone the props

Source

fn as_any(&self) -> &dyn Any

Convert to Any for downcasting

Source

fn as_any_mut(&mut self) -> &mut dyn Any

Convert to mutable Any for downcasting

Implementors§

Source§

impl<T: 'static + Clone + Send + Sync> Props for T