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§
Sourcefn is_shown(&self, row: &TreeFilterContext) -> bool
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.