pub enum ComboboxEvent<D: SearchableListDelegate + 'static>{
Change(Vec<<D::Item as SearchableListItem>::Value>),
Confirm(Vec<<D::Item as SearchableListItem>::Value>),
}Expand description
Events emitted by ComboboxState.
Variants§
Change(Vec<<D::Item as SearchableListItem>::Value>)
Emitted on every toggle (item added or removed).
Confirm(Vec<<D::Item as SearchableListItem>::Value>)
Emitted when the popover closes.
Trait Implementations§
impl<D> EventEmitter<ComboboxEvent<D>> for ComboboxState<D>where
D: SearchableListDelegate + 'static,
<D::Item as SearchableListItem>::Value: PartialEq + Clone,
Auto Trait Implementations§
impl<D> Freeze for ComboboxEvent<D>where
<<D as SearchableListDelegate>::Item as SearchableListItem>::Value: Sized,
Vec<<<D as SearchableListDelegate>::Item as SearchableListItem>::Value>: Freeze,
impl<D> RefUnwindSafe for ComboboxEvent<D>where
<<D as SearchableListDelegate>::Item as SearchableListItem>::Value: Sized,
Vec<<<D as SearchableListDelegate>::Item as SearchableListItem>::Value>: RefUnwindSafe,
impl<D> Send for ComboboxEvent<D>where
<<D as SearchableListDelegate>::Item as SearchableListItem>::Value: Sized,
Vec<<<D as SearchableListDelegate>::Item as SearchableListItem>::Value>: Send,
impl<D> Sync for ComboboxEvent<D>where
<<D as SearchableListDelegate>::Item as SearchableListItem>::Value: Sized,
Vec<<<D as SearchableListDelegate>::Item as SearchableListItem>::Value>: Sync,
impl<D> Unpin for ComboboxEvent<D>where
<<D as SearchableListDelegate>::Item as SearchableListItem>::Value: Sized,
Vec<<<D as SearchableListDelegate>::Item as SearchableListItem>::Value>: Unpin,
impl<D> UnsafeUnpin for ComboboxEvent<D>where
<<D as SearchableListDelegate>::Item as SearchableListItem>::Value: Sized,
Vec<<<D as SearchableListDelegate>::Item as SearchableListItem>::Value>: UnsafeUnpin,
impl<D> UnwindSafe for ComboboxEvent<D>where
<<D as SearchableListDelegate>::Item as SearchableListItem>::Value: Sized,
Vec<<<D as SearchableListDelegate>::Item as SearchableListItem>::Value>: UnwindSafe,
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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