pub trait ButtonPresenter {
// Required methods
fn content_root(&self) -> FlexBox;
fn label_node(&self) -> TextNode;
fn present(
&self,
theme: &Theme,
state: &ButtonVisualState,
colors: Option<&ButtonColors>,
) -> PresenterHostStyle;
}Required Methods§
fn content_root(&self) -> FlexBox
fn label_node(&self) -> TextNode
fn present( &self, theme: &Theme, state: &ButtonVisualState, colors: Option<&ButtonColors>, ) -> PresenterHostStyle
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".