[][src]Enum rustc_ap_rustc_span::FileName

pub enum FileName {
    Real(PathBuf),
    Macros(String),
    QuoteExpansion(u64),
    Anon(u64),
    MacroExpansion(u64),
    ProcMacroSourceCode(u64),
    CfgSpec(u64),
    CliCrateAttr(u64),
    Custom(String),
    DocTest(PathBufisize),
}

Differentiates between real files and common virtual files.

Variants

Real(PathBuf)
Macros(String)

A macro. This includes the full name of the macro, so that there are no clashes.

QuoteExpansion(u64)

Call to quote!.

Anon(u64)

Command line.

MacroExpansion(u64)

Hack in src/libsyntax/parse.rs.

ProcMacroSourceCode(u64)
CfgSpec(u64)

Strings provided as --cfg [cfgspec] stored in a crate_cfg.

CliCrateAttr(u64)

Strings provided as crate attributes in the CLI.

Custom(String)

Custom sources for explicit parser calls from plugins and drivers.

DocTest(PathBufisize)

Methods

impl FileName[src]

Trait Implementations

impl Clone for FileName[src]

impl Debug for FileName[src]

impl Decodable for FileName[src]

impl Display for FileName[src]

impl Encodable for FileName[src]

impl Eq for FileName[src]

impl From<PathBuf> for FileName[src]

impl Hash for FileName[src]

impl<__CTX> HashStable<__CTX> for FileName where
    __CTX: HashStableContext
[src]

impl Ord for FileName[src]

impl PartialEq<FileName> for FileName[src]

impl PartialOrd<FileName> for FileName[src]

impl StructuralEq for FileName[src]

impl StructuralPartialEq for FileName[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<'a, T> Captures<'a> for T where
    T: ?Sized
[src]

impl<T> Decodable for T where
    T: UseSpecializedDecodable
[src]

impl<T> Encodable for T where
    T: UseSpecializedEncodable + ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> Erased for T[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<E> SpecializationError for E[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.