Enum swc_common::source_map::FileName [−][src]
pub enum FileName { Real(PathBuf), Macros(String), QuoteExpansion, Anon, MacroExpansion, ProcMacroSourceCode, Custom(String), }
Expand description
Differentiates between real files and common virtual files.
Variants
Tuple Fields of Real
0: PathBuf
A macro. This includes the full name of the macro, so that there are no clashes.
Tuple Fields of Macros
0: String
call to quote!
Command line
Hack in src/libsyntax/parse.rs FIXME(jseyfried)
Custom sources for explicit parser calls from plugins and drivers
Tuple Fields of Custom
0: String
Implementations
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for FileName
impl UnwindSafe for FileName
Blanket Implementations
Mutably borrows from an owned value. Read more