Enum rustc_ap_rustc_span::ExternalSource[][src]

pub enum ExternalSource {
    Unneeded,
    Foreign {
        kind: ExternalSourceKind,
        original_start_pos: BytePos,
        original_end_pos: BytePos,
    },
}

Variants

Unneeded

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

Foreign

Fields of Foreign

kind: ExternalSourceKindoriginal_start_pos: BytePos

This SourceFile’s byte-offset within the source_map of its original crate.

original_end_pos: BytePos

The end of this SourceFile within the source_map of its original crate.

Implementations

impl ExternalSource[src]

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

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

Trait Implementations

impl Clone for ExternalSource[src]

impl Debug 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> Instrument 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<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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,