pub enum NavMenuPatch {
Selected(Option<usize>),
Items {
items: Vec<String>,
icons: Vec<Option<String>>,
badges: Vec<Option<String>>,
sections: Vec<Option<String>>,
tints: Vec<Option<Color>>,
selected: Option<usize>,
},
}Variants§
Selected(Option<usize>)
Programmatic highlight sync — toolkits apply WITHOUT re-emitting SelectionChanged (the TextField from_native echo rule).
Items
The item set changed (data-driven selector().items(signal, …)): rebuild the rows
from these labels/icons, then apply selected (docs/navigation.md). Applied WITHOUT
re-emitting SelectionChanged.
Trait Implementations§
Source§fn clone(&self) -> NavMenuPatch
fn clone(&self) -> NavMenuPatch
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§fn eq(&self, other: &NavMenuPatch) -> bool
fn eq(&self, other: &NavMenuPatch) -> bool
Tests for
self and other values to be equal, and is used by ==.Auto Trait Implementations§
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