pub enum ToolbarPatch {
Text {
item: String,
text: String,
},
On {
item: String,
on: bool,
},
Enabled {
item: String,
on: bool,
},
}Expand description
A targeted update to one live toolbar item — the path that keeps a bound signal in sync without rebuilding the bar (which would drop the search field’s focus mid-keystroke).
Variants§
Text
Replace a search item’s text.
On
Set a toggle item’s state.
Enabled
Enable or disable any item.
Trait Implementations§
Source§impl Clone for ToolbarPatch
impl Clone for ToolbarPatch
Source§fn clone(&self) -> ToolbarPatch
fn clone(&self) -> ToolbarPatch
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 ToolbarPatch
impl Debug for ToolbarPatch
Source§impl PartialEq for ToolbarPatch
impl PartialEq for ToolbarPatch
Source§fn eq(&self, other: &ToolbarPatch) -> bool
fn eq(&self, other: &ToolbarPatch) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ToolbarPatch
Auto Trait Implementations§
impl Freeze for ToolbarPatch
impl RefUnwindSafe for ToolbarPatch
impl Send for ToolbarPatch
impl Sync for ToolbarPatch
impl Unpin for ToolbarPatch
impl UnsafeUnpin for ToolbarPatch
impl UnwindSafe for ToolbarPatch
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