pub enum GlassButtonStyle {
Glass,
Prominent,
Plain,
Destructive,
}Expand description
Visual style of a GlassButton.
Variants§
Glass
Translucent glass with the label in the accent color.
Prominent
Accent-tinted glass with white content — the primary action.
Plain
No material: just the label with press feedback (toolbar/text button).
Destructive
Destructive variant of Plain.
Trait Implementations§
Source§impl Clone for GlassButtonStyle
impl Clone for GlassButtonStyle
Source§fn clone(&self) -> GlassButtonStyle
fn clone(&self) -> GlassButtonStyle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for GlassButtonStyle
Source§impl Debug for GlassButtonStyle
impl Debug for GlassButtonStyle
Source§impl Default for GlassButtonStyle
impl Default for GlassButtonStyle
Source§fn default() -> GlassButtonStyle
fn default() -> GlassButtonStyle
Returns the “default value” for a type. Read more
impl Eq for GlassButtonStyle
Source§impl PartialEq for GlassButtonStyle
impl PartialEq for GlassButtonStyle
impl StructuralPartialEq for GlassButtonStyle
Auto Trait Implementations§
impl Freeze for GlassButtonStyle
impl RefUnwindSafe for GlassButtonStyle
impl Send for GlassButtonStyle
impl Sync for GlassButtonStyle
impl Unpin for GlassButtonStyle
impl UnsafeUnpin for GlassButtonStyle
impl UnwindSafe for GlassButtonStyle
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more