Struct syntax::codemap::FilePathMapping
[−]
[src]
pub struct FilePathMapping { /* fields omitted */ }
Methods
impl FilePathMapping
[src]
pub fn empty() -> FilePathMapping
[src]
pub fn new(mapping: Vec<(PathBuf, PathBuf)>) -> FilePathMapping
[src]
pub fn map_prefix(&self, path: PathBuf) -> (PathBuf, bool)
[src]
Applies any path prefix substitution as defined by the mapping. The return value is the remapped path and a boolean indicating whether the path was affected by the mapping.
Trait Implementations
impl Clone for FilePathMapping
[src]
fn clone(&self) -> FilePathMapping
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more