pub enum PickerPatch {
Selected(usize),
Options(Vec<String>),
Enabled(bool),
}Variants§
Selected(usize)
Options(Vec<String>)
New option labels, for a picker whose choices come from data (a document list, a
live count). The backend rebuilds its items and keeps the selected index where it
still exists, clamping to the last option otherwise; a fresh
PickerPatch::Selected follows whenever the app’s own binding disagrees.
Enabled(bool)
Enable or disable the whole control, every style alike.
Trait Implementations§
Source§impl Clone for PickerPatch
impl Clone for PickerPatch
Source§fn clone(&self) -> PickerPatch
fn clone(&self) -> PickerPatch
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 PickerPatch
impl Debug for PickerPatch
Source§impl PartialEq for PickerPatch
impl PartialEq for PickerPatch
impl StructuralPartialEq for PickerPatch
Auto Trait Implementations§
impl Freeze for PickerPatch
impl RefUnwindSafe for PickerPatch
impl Send for PickerPatch
impl Sync for PickerPatch
impl Unpin for PickerPatch
impl UnsafeUnpin for PickerPatch
impl UnwindSafe for PickerPatch
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