pub enum MultiSelectEvent {
Toggled {
name: SharedString,
on: bool,
},
Created(SharedString),
Renamed {
from: SharedString,
to: SharedString,
},
Deleted(SharedString),
Dismissed,
Searched(SharedString),
}Expand description
What the picker asks of its host.
Variants§
Toggled
name turned on or off. A mixed choice turns on.
Created(SharedString)
A name no choice has, already normalised by
MultiSelect::with_create’s function, to be created and turned on.
Renamed
from renamed to to, normalised. to may already be a choice.
Deleted(SharedString)
name deleted. Not confirmed by the picker.
Dismissed
Escape, or a press outside the card.
Searched(SharedString)
The query changed, in a picker the host searches — see
MultiSelect::with_search. Answered with
MultiSelect::set_choices.
Trait Implementations§
Source§impl Clone for MultiSelectEvent
impl Clone for MultiSelectEvent
Source§impl Debug for MultiSelectEvent
impl Debug for MultiSelectEvent
impl Eq for MultiSelectEvent
impl EventEmitter<MultiSelectEvent> for MultiSelect
Source§impl PartialEq for MultiSelectEvent
impl PartialEq for MultiSelectEvent
impl StructuralPartialEq for MultiSelectEvent
Auto Trait Implementations§
impl Forget for MultiSelectEvent
impl Freeze for MultiSelectEvent
impl Move for MultiSelectEvent
impl RefUnwindSafe for MultiSelectEvent
impl Send for MultiSelectEvent
impl Sync for MultiSelectEvent
impl Unpin for MultiSelectEvent
impl UnsafeUnpin for MultiSelectEvent
impl UnwindSafe for MultiSelectEvent
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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