pub enum ButtonStyleSpec {
Automatic,
Bordered,
Prominent,
}Expand description
A button’s NATIVE styling tier. Automatic is the toolkit’s stock look; Bordered
asks for a visually contained button where the stock look is borderless (iOS’s plain
system button reads as a link); Prominent asks for the platform’s accent-filled /
default-action affordance. Toolkits whose stock buttons are already contained treat
Bordered as Automatic.
Variants§
Trait Implementations§
Source§impl Clone for ButtonStyleSpec
impl Clone for ButtonStyleSpec
Source§fn clone(&self) -> ButtonStyleSpec
fn clone(&self) -> ButtonStyleSpec
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 moreSource§impl Debug for ButtonStyleSpec
impl Debug for ButtonStyleSpec
Source§impl Default for ButtonStyleSpec
impl Default for ButtonStyleSpec
Source§fn default() -> ButtonStyleSpec
fn default() -> ButtonStyleSpec
Returns the “default value” for a type. Read more
Source§impl PartialEq for ButtonStyleSpec
impl PartialEq for ButtonStyleSpec
Source§fn eq(&self, other: &ButtonStyleSpec) -> bool
fn eq(&self, other: &ButtonStyleSpec) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ButtonStyleSpec
impl Eq for ButtonStyleSpec
impl StructuralPartialEq for ButtonStyleSpec
Auto Trait Implementations§
impl Freeze for ButtonStyleSpec
impl RefUnwindSafe for ButtonStyleSpec
impl Send for ButtonStyleSpec
impl Sync for ButtonStyleSpec
impl Unpin for ButtonStyleSpec
impl UnsafeUnpin for ButtonStyleSpec
impl UnwindSafe for ButtonStyleSpec
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