Skip to main content

LayoutFactory

Trait LayoutFactory 

Source
pub trait LayoutFactory: Send + Sync {
    // Required method
    fn create(&self, config: LayoutConfig) -> Box<dyn Layout>;
}

Required Methods§

Source

fn create(&self, config: LayoutConfig) -> Box<dyn Layout>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§