[][src]Enum rustc_ap_rustc_span::RealFileName

pub enum RealFileName {
    Named(PathBuf),
    Devirtualized {
        local_path: PathBuf,
        virtual_name: PathBuf,
    },
}

Variants

Named(PathBuf)
Devirtualized

For de-virtualized paths (namely paths into libstd that have been mapped to the appropriate spot on the local host's file system),

Fields of Devirtualized

local_path: PathBuf

local_path is the (host-dependent) local path to the file.

virtual_name: PathBuf

virtual_name is the stable path rustc will store internally within build artifacts.

Implementations

impl RealFileName[src]

pub fn local_path(&self) -> &Path[src]

Returns the path suitable for reading from the file system on the local host. Avoid embedding this in build artifacts; see stable_name for that.

pub fn into_local_path(self) -> PathBuf[src]

Returns the path suitable for reading from the file system on the local host. Avoid embedding this in build artifacts; see stable_name for that.

pub fn stable_name(&self) -> &Path[src]

Returns the path suitable for embedding into build artifacts. Note that a virtualized path will not correspond to a valid file system path; see local_path for something that is more likely to return paths into the local host file system.

Trait Implementations

impl Clone for RealFileName[src]

impl Debug for RealFileName[src]

impl Decodable for RealFileName[src]

impl Encodable for RealFileName[src]

impl Eq for RealFileName[src]

impl Hash for RealFileName[src]

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

impl Ord for RealFileName[src]

impl PartialEq<RealFileName> for RealFileName[src]

impl PartialOrd<RealFileName> for RealFileName[src]

impl StructuralEq for RealFileName[src]

impl StructuralPartialEq for RealFileName[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, 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.