/// Simple test for a single non-dynamic factory element use despatma_abstract_factory::{abstract_factory, interpolate_traits}; pub trait Factory { fn create(&self, parent: Element) -> T; } pub trait AbstractGuiFactory: Factory {} struct QtFactory {} impl AbstractGuiFactory for QtFactory {} impl Factory for QtFactory { fn create(&self, parent: Element) -> Window { Window::new(parent) } }