Trait cvar::IVisit [−][src]
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 self, f: &mut FnMut(&mut cvar::INode)) { // Pass type-erased properties, lists and actions to the closure f(&mut cvar::Property("data", &mut self.data, 42)); } }
Required methods
fn visit(&mut self, f: &mut dyn FnMut(&mut dyn INode))
[src]
Visits the child nodes.
Callers may depend on the particular order in which the nodes are passed to the closure.