Enum swc_common::source_map::FileName [−][src]
pub enum FileName {
Real(PathBuf),
Macros(String),
QuoteExpansion,
Anon,
MacroExpansion,
ProcMacroSourceCode,
Url(Url),
Internal(String),
Custom(String),
}
Expand description
Differentiates between real files and common virtual files.
Variants
Real(PathBuf)
Tuple Fields of Real
0: PathBuf
Macros(String)
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)
Url(Url)
Tuple Fields of Url
0: Url
Internal(String)
Tuple Fields of Internal
0: String
Custom(String)
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
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more