Struct syntax::codemap::FilePathMapping [−][src]
pub struct FilePathMapping { /* fields omitted */ }Methods
impl FilePathMapping[src]
impl FilePathMappingpub fn empty() -> FilePathMapping[src]
pub fn empty() -> FilePathMappingpub fn new(mapping: Vec<(PathBuf, PathBuf)>) -> FilePathMapping[src]
pub fn new(mapping: Vec<(PathBuf, PathBuf)>) -> FilePathMappingpub fn map_prefix(&self, path: PathBuf) -> (PathBuf, bool)[src]
pub fn map_prefix(&self, path: PathBuf) -> (PathBuf, bool)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]
impl Clone for FilePathMappingfn clone(&self) -> FilePathMapping[src]
fn clone(&self) -> FilePathMappingReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
Auto Trait Implementations
impl Send for FilePathMapping
impl Send for FilePathMappingimpl Sync for FilePathMapping
impl Sync for FilePathMapping