Skip to main content

TreeFilterRule

Trait TreeFilterRule 

Source
pub trait TreeFilterRule:
    Send
    + Sync
    + 'static {
    // Required method
    fn is_shown(&self, row: &TreeFilterContext) -> bool;
}
Expand description

A rule for TreeFilter::Custom. Called for every row in the background while the view has a filter or a quick filter; without them every row is shown and the rule is not called.

Required Methods§

Source

fn is_shown(&self, row: &TreeFilterContext) -> bool

Returns true if the row is shown. A shown row whose parent is hidden hangs from its nearest shown ancestor, or is a root.

Implementors§