pub enum ComboPatch {
Items(Vec<String>),
SetText(String),
}Expand description
Sparse imperative updates: replace the dropdown’s items, or the entry’s text (programmatic sync from the bound signal). An items swap must keep the typed text — the text is the value.
Variants§
Trait Implementations§
Source§impl Clone for ComboPatch
impl Clone for ComboPatch
Source§fn clone(&self) -> ComboPatch
fn clone(&self) -> ComboPatch
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 ComboPatch
impl Debug for ComboPatch
Source§impl PartialEq for ComboPatch
impl PartialEq for ComboPatch
Source§fn eq(&self, other: &ComboPatch) -> bool
fn eq(&self, other: &ComboPatch) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ComboPatch
Auto Trait Implementations§
impl Freeze for ComboPatch
impl RefUnwindSafe for ComboPatch
impl Send for ComboPatch
impl Sync for ComboPatch
impl Unpin for ComboPatch
impl UnsafeUnpin for ComboPatch
impl UnwindSafe for ComboPatch
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more