Skip to main content

WidgetFactory

Trait WidgetFactory 

Source
pub trait WidgetFactory {
    // Required method
    fn new(&self, cx: &mut Cx) -> Box<dyn Widget>;
}

Required Methods§

Source

fn new(&self, cx: &mut Cx) -> Box<dyn Widget>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§