Skip to main content

source_path_matches

Function source_path_matches 

Source
pub fn source_path_matches(source_path: &str, requested: &str) -> bool
Expand description

Whether a source path from the compiler matches what a user or an editor asked for: the whole path, a trailing part of either (an editor sends absolute paths where the compiler recorded relative ones), or just the file name.