[][src]Enum syntax_pos::FileName

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

Differentiates between real files and common virtual files

Variants

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

call to quote!

Command line

Hack in src/libsyntax/parse.rs FIXME(jseyfried)

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

Strings provided as crate attributes in the CLI

Custom sources for explicit parser calls from plugins and drivers

Methods

impl FileName
[src]

Trait Implementations

impl Clone for FileName
[src]

Performs copy-assignment from source. Read more

impl From<PathBuf> for FileName
[src]

impl Eq for FileName
[src]

impl PartialOrd<FileName> for FileName
[src]

impl PartialEq<FileName> for FileName
[src]

impl Ord for FileName
[src]

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl Display for FileName
[src]

impl Debug for FileName
[src]

impl Hash for FileName
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Decodable for FileName
[src]

impl Encodable for FileName
[src]

Auto Trait Implementations

impl Send for FileName

impl Sync for FileName

Blanket Implementations

impl<T> From for T
[src]

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> BorrowMut 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<E> SpecializationError for E
[src]

impl<T> Erased for T
[src]

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

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

impl<T> Erased for T