Trait AsDynWidget
pub trait AsDynWidget {
// Required method
fn as_dyn_widget(&self) -> &dyn Widget;
}Expand description
A widget as &dyn Widget, also one that already is a trait object: a
decorator’s inner widget may be either, and its layout walk hands the
inner widget on (Widget::for_each_layout_child).
Required Methods§
fn as_dyn_widget(&self) -> &dyn Widget
fn as_dyn_widget(&self) -> &dyn Widget
This widget as a trait object.