SourceTracker

Trait SourceTracker 

Source
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.

Required Methods§

Source

fn track(&mut self, path: &Path, source: &str)

Called for each include path successfully included by the preprocessor, along with a reference to the source text of the included file.

Implementations on Foreign Types§

Source§

impl<T> SourceTracker for &mut T
where T: SourceTracker,

Source§

fn track(&mut self, path: &Path, source: &str)

Implementors§