pub struct AutoCompleteFilterPredicate<T: 'static>(/* private fields */);Expand description
Represents the filter used by the AutoCompleteBox control to
determine whether an item is a possible match for the specified text.
The function takes the string used as the basis for filtering and the
item that is compared with it, and returns true to indicate the item
is a possible match. T is the type used for filtering: the text form
of an item (Option<String>) or the item itself
(Option<BoxedValue>).
A filter is a reference: copies compare equal to what they were copied from, two filters made from the same function do not.
Implementations§
Trait Implementations§
Source§impl<T: 'static> Clone for AutoCompleteFilterPredicate<T>
impl<T: 'static> Clone for AutoCompleteFilterPredicate<T>
Auto Trait Implementations§
impl<T> !RefUnwindSafe for AutoCompleteFilterPredicate<T>
impl<T> !Send for AutoCompleteFilterPredicate<T>
impl<T> !Sync for AutoCompleteFilterPredicate<T>
impl<T> !UnwindSafe for AutoCompleteFilterPredicate<T>
impl<T> Freeze for AutoCompleteFilterPredicate<T>
impl<T> Unpin for AutoCompleteFilterPredicate<T>
impl<T> UnsafeUnpin for AutoCompleteFilterPredicate<T>
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
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> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more