[−][src]Trait cvar::IVisit
Node visitor.
The visitor pattern is used to discover child nodes in custom types.
This trait is most commonly required to be implemented by users of this crate.
struct Foo { data: i32, } impl cvar::IVisit for Foo { fn visit_mut(&mut self, f: &mut FnMut(&mut cvar::INode)) { // Pass type-erased properties, lists and actions to the closure f(&mut cvar::Property("data", "description", &mut self.data, 42)); } }
Required methods
fn visit_mut(&mut self, f: &mut dyn FnMut(&mut dyn INode))
Visits the child nodes.
Callers may depend on the particular order in which the nodes are passed to the closure.