Function relm::init_test [] [src]

pub fn init_test<WIDGET>(
    model_param: WIDGET::ModelParam
) -> Result<Component<WIDGET>, ()> where
    WIDGET: Widget + 'static,
    WIDGET::Msg: DisplayVariant + 'static, 

Initialize a widget for a test.

It is to be used this way:

let component = relm::init_test::<Win>(()).unwrap();
let widgets = component.widget();