pub trait SourceTracker {
// Required method
fn track(&mut self, path: &Path, source: &str);
}Expand description
Trait implemented by types that track source-file use by preprocess_with_source_tracker.
preprocess_with_source_tracker will call SourceTracker::track for each file that was included into the preprocessor’s output. SourceTracker::track will only be called once for each included file, irrespective of how many times the file is referenced or included.
See also the Source Tracking section of the top-level documentation.