[−][src]Enum rustc_span::ExternalSource

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

impl !RefUnwindSafe for ExternalSource

impl !Send for ExternalSource

impl !Sync for ExternalSource

impl Unpin for ExternalSource

impl UnwindSafe for ExternalSource

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<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[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.