pub trait TreeIterator:
InternalTreeIterator
+ Iterator<Item = WidgetInfo>
+ FusedIterator {
// Provided methods
fn tree_filter<F>(self, filter: F) -> TreeFilterIter<Self, F> ⓘ
where Self: Sized,
F: FnMut(&WidgetInfo) -> TreeFilter { ... }
fn tree_find<F>(self, filter: F) -> Option<WidgetInfo>
where Self: Sized,
F: FnMut(&WidgetInfo) -> TreeFilter { ... }
fn tree_any<F>(self, filter: F) -> bool
where Self: Sized,
F: FnMut(&WidgetInfo) -> TreeFilter { ... }
}
Expand description
Iterator that traverses the branches of a widget tree.
Provided Methods§
sourcefn tree_filter<F>(self, filter: F) -> TreeFilterIter<Self, F> ⓘ
fn tree_filter<F>(self, filter: F) -> TreeFilterIter<Self, F> ⓘ
Creates an iterator which uses a closure to filter items or branches at a time.
See TreeFilter
for details.
sourcefn tree_find<F>(self, filter: F) -> Option<WidgetInfo>
fn tree_find<F>(self, filter: F) -> Option<WidgetInfo>
Gets the first item not filtered out by a TreeFilter
closure.
sourcefn tree_any<F>(self, filter: F) -> bool
fn tree_any<F>(self, filter: F) -> bool
Check if any item is not filtered out by a TreeFilter
closure.