[][src]Enum rustc_ap_rustc_span::FileName

pub enum FileName {
    Real(PathBuf),
    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)
QuoteExpansion(u64)

Call to quote!.

Anon(u64)

Command line.

MacroExpansion(u64)

Hack in src/librustc_ast/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)

Implementations

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<T> Same<T> for T

type Output = T

Should always be Self

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.