pub trait ItemVisitor {
// Required method
fn visit_item(
&mut self,
_1: &VRc<ItemTreeVTable, Dyn>,
_2: u32,
_3: Pin<VRef<'_, ItemVTable>>,
) -> VisitChildrenResult;
}
Expand description
Object to be passed in visit_item_children method of the ItemTree.
Note: Was generated from the #[vtable]
macro on ItemVisitorVTable
Required Methods§
Sourcefn visit_item(
&mut self,
_1: &VRc<ItemTreeVTable, Dyn>,
_2: u32,
_3: Pin<VRef<'_, ItemVTable>>,
) -> VisitChildrenResult
fn visit_item( &mut self, _1: &VRc<ItemTreeVTable, Dyn>, _2: u32, _3: Pin<VRef<'_, ItemVTable>>, ) -> VisitChildrenResult
Called for each child of the visited item
The item_tree
parameter is the ItemTree in which the item live which might not be the same
as the parent’s ItemTree.
index
is to be used again in the visit_item_children function of the ItemTree (the one passed as parameter)
and item
is a reference to the item itself