Function sixtyfps_corelib::item_tree::visit_items_with_post_visit[][src]

pub fn visit_items_with_post_visit<State, PostVisitState>(
    component: &ComponentRc,
    order: TraversalOrder,
    visitor: impl FnMut(&ComponentRc, Pin<ItemRef<'_>>, usize, &State) -> (ItemVisitorResult<State>, PostVisitState),
    post_visitor: impl FnMut(&ComponentRc, Pin<ItemRef<'_>>, PostVisitState, VisitChildrenResult) -> VisitChildrenResult,
    state: State
) -> VisitChildrenResult
Expand description

Visit each items recursively

The state parameter returned by the visitor is passed to each children.

Returns the index of the item that cancelled, or -1 if nobody cancelled