Expand description
Provides the capability to walk the in-memory model of an SDML module.
To use the model walker:
- Provide a type, say
MyModuleWalker
. - Provide an implementation of [
ModuleWalker
] forMyModuleWalker
. - Implement any methods from the trait [
ModuleWalker
] of interest to you. - Use the function [
walk_module
] and provide the module you wish to walk and your walker.
ⓘ
#[derive(Debug, Default)]
pub struct MyModuleWalker {}
impl ModuleWalker for MyModuleWalker {
// implement some methods...
}
walk_module(&some_module, &mut MyModuleWalker::default());
Traits§
- The trait that captures the callbacks that [
walk_module
] uses as it traverses the module.
Functions§
- Walk the module
module
calling the relevant methods onwalker
.