pub trait SelectableButton: Toggleable {
// Required method
fn selected_style(self, style: ButtonStyle) -> Self;
}Expand description
A trait for buttons that can be Selected. Enables setting the ButtonStyle of a button when it is selected.
Required Methods§
fn selected_style(self, style: ButtonStyle) -> Self
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".