Struct rustc_span::source_map::FilePathMapping [−][src]
pub struct FilePathMapping {
mapping: Vec<(PathBuf, PathBuf)>,
filename_display_for_diagnostics: FileNameDisplayPreference,
}
Fields
mapping: Vec<(PathBuf, PathBuf)>
filename_display_for_diagnostics: FileNameDisplayPreference
Implementations
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
Auto Trait Implementations
impl RefUnwindSafe for FilePathMapping
impl Send for FilePathMapping
impl Sync for FilePathMapping
impl Unpin for FilePathMapping
impl UnwindSafe for FilePathMapping
Blanket Implementations
Mutably borrows from an owned value. Read more
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 32 bytes