#[non_exhaustive]pub enum ButtonStyle {
Automatic,
Plain,
Link,
Borderless,
Bordered,
BorderedProminent,
}Expand description
Visual style options for buttons.
Different button styles provide different visual emphasis and behavior.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Automatic
The default button style, determined by the platform and context. On macOS/iOS, this typically renders as a rounded rectangle with background.
Plain
A plain text button without any background or border. Suitable for low-emphasis actions.
Link
A button styled as a hyperlink, typically with underlined blue text. Used for URL navigation and text-based links.
Borderless
A button without a visible border, but may show hover/press effects. Similar to Plain but with more interactive feedback.
Bordered
A prominent button style for primary actions. Typically rendered with a filled background color.
BorderedProminent
A prominent button with visible border. Similar to Bordered but with more prominent styling.
Trait Implementations§
Source§impl Clone for ButtonStyle
impl Clone for ButtonStyle
Source§fn clone(&self) -> ButtonStyle
fn clone(&self) -> ButtonStyle
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ButtonStyle
impl Debug for ButtonStyle
Source§impl Default for ButtonStyle
impl Default for ButtonStyle
Source§fn default() -> ButtonStyle
fn default() -> ButtonStyle
Source§impl Hash for ButtonStyle
impl Hash for ButtonStyle
Source§impl PartialEq for ButtonStyle
impl PartialEq for ButtonStyle
impl Copy for ButtonStyle
impl Eq for ButtonStyle
impl StructuralPartialEq for ButtonStyle
Auto Trait Implementations§
impl Freeze for ButtonStyle
impl RefUnwindSafe for ButtonStyle
impl Send for ButtonStyle
impl Sync for ButtonStyle
impl Unpin for ButtonStyle
impl UnwindSafe for ButtonStyle
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)