pub trait WidgetTest: Widget {
type Streams;
type Widgets;
// Required methods
fn get_streams(&self) -> Self::Streams;
fn get_widgets(&self) -> Self::Widgets;
}
Expand description
Trait implemented by the generator to ease the creation of tests of relm widgets using the view! macro.
Required Associated Types§
Required Methods§
Sourcefn get_streams(&self) -> Self::Streams
fn get_streams(&self) -> Self::Streams
Get the structure containing all the StreamHandle
s. Useful for tests.
Sourcefn get_widgets(&self) -> Self::Widgets
fn get_widgets(&self) -> Self::Widgets
Get the structure containing all the widgets. Useful for tests.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.