pub enum ButtonPatch {
Title(String),
Content(ButtonContent),
Enabled(bool),
Selected(bool),
Style(ButtonStyleSpec),
}Variants§
Title(String)
Content(ButtonContent)
Update an icon button’s label and icon together. Plain buttons still use Title.
Enabled(bool)
Selected(bool)
The selected state (see ButtonProps::selected).
Style(ButtonStyleSpec)
A live style change: what a reactive .tint(…) sends, so a button can recolor with
app state without being torn down and realized again.
Trait Implementations§
Source§impl Clone for ButtonPatch
impl Clone for ButtonPatch
Source§fn clone(&self) -> ButtonPatch
fn clone(&self) -> ButtonPatch
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 ButtonPatch
impl Debug for ButtonPatch
Source§impl PartialEq for ButtonPatch
impl PartialEq for ButtonPatch
impl StructuralPartialEq for ButtonPatch
Auto Trait Implementations§
impl Freeze for ButtonPatch
impl RefUnwindSafe for ButtonPatch
impl Send for ButtonPatch
impl Sync for ButtonPatch
impl Unpin for ButtonPatch
impl UnsafeUnpin for ButtonPatch
impl UnwindSafe for ButtonPatch
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