Trait gtk4::subclass::filter::FilterImpl

source ·
pub trait FilterImpl: FilterImplExt + ObjectImpl {
    // Provided methods
    fn strictness(&self) -> FilterMatch { ... }
    fn match_(&self, item: &Object) -> bool { ... }
}

Provided Methods§

source

fn strictness(&self) -> FilterMatch

Gets the known strictness of @filters.

If the strictness is not known, FilterMatch::Some is returned.

This value may change after emission of the changed signal.

This function is meant purely for optimization purposes, filters can choose to omit implementing it, but FilterListModel uses it.

§Returns

the strictness of @self

source

fn match_(&self, item: &Object) -> bool

Checks if the given @item is matched by the filter or not.

§item

The item to check

§Returns

true if the filter matches the item and a filter model should keep it, false if not.

Object Safety§

This trait is not object safe.

Implementors§