pub trait WidgetLayoutExt {
// Required method
fn set_layout_style(
&mut self,
layout_style: impl Into<MaybeSignal<LayoutStyle>>,
);
// Provided method
fn with_layout_style(
self,
layout_style: impl Into<MaybeSignal<LayoutStyle>>,
) -> Self
where Self: Sized { ... }
}Expand description
An extension trait for widgets with a layout style.
Required Methods§
Sourcefn set_layout_style(
&mut self,
layout_style: impl Into<MaybeSignal<LayoutStyle>>,
)
fn set_layout_style( &mut self, layout_style: impl Into<MaybeSignal<LayoutStyle>>, )
Sets the layout style of the widget.
Provided Methods§
Sourcefn with_layout_style(
self,
layout_style: impl Into<MaybeSignal<LayoutStyle>>,
) -> Selfwhere
Self: Sized,
fn with_layout_style(
self,
layout_style: impl Into<MaybeSignal<LayoutStyle>>,
) -> Selfwhere
Self: Sized,
Sets the layout style of the widget and returns self.
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.