[][src]Enum rustc_ap_rustc_span::ExternalSource

pub enum ExternalSource {
    Present(String),
    AbsentOk,
    AbsentErr,
    Unneeded,
}

The state of the lazy external source loading mechanism of a SourceFile.

Variants

Present(String)

The external source has been loaded already.

AbsentOk

No attempt has been made to load the external source.

AbsentErr

A failed attempt has been made to load the external source.

Unneeded

No external source has to be loaded, since the SourceFile represents a local crate.

Methods

impl ExternalSource[src]

pub fn is_absent(&self) -> bool[src]

pub fn get_source(&self) -> Option<&str>[src]

Trait Implementations

impl Clone for ExternalSource[src]

impl Eq for ExternalSource[src]

impl PartialEq<ExternalSource> for ExternalSource[src]

impl StructuralEq for ExternalSource[src]

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