Struct syntax::codemap::FilePathMapping [−][src]
pub struct FilePathMapping { /* fields omitted */ }
Methods
impl FilePathMapping
[src]
impl FilePathMapping
pub fn empty() -> FilePathMapping
[src]
pub fn empty() -> FilePathMapping
pub fn new(mapping: Vec<(PathBuf, PathBuf)>) -> FilePathMapping
[src]
pub fn new(mapping: Vec<(PathBuf, PathBuf)>) -> FilePathMapping
pub 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 FilePathMapping
fn clone(&self) -> FilePathMapping
[src]
fn clone(&self) -> FilePathMapping
Returns 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 FilePathMapping
impl Sync for FilePathMapping
impl Sync for FilePathMapping