[−][src]Enum rustc_resolve::late::PathSource

pub(crate) enum PathSource<'a> {
    Type,
    Trait(AliasPossibility),
    Expr(Option<&'a Expr>),
    Pat,
    Struct,
    TupleStruct(Span, &'a [Span]),
    TraitItem(Namespace),
}

Variants

Type
Trait(AliasPossibility)
Expr(Option<&'a Expr>)
Pat
Struct
TupleStruct(Span, &'a [Span])
TraitItem(Namespace)

Implementations

impl<'a> PathSource<'a>[src]

pub(in late) fn namespace(
    self
) -> Namespace
[src]

pub(in late) fn defer_to_typeck(
    self
) -> bool
[src]

pub(in late) fn descr_expected(
    self
) -> &'static str
[src]

pub(in late) fn is_call(
    self
) -> bool
[src]

pub(crate) fn is_expected(self, res: Res<NodeId>) -> bool[src]

pub(in late) fn error_code(
    self,
    has_unexpected_resolution: bool
) -> DiagnosticId
[src]

Trait Implementations

impl<'a> Clone for PathSource<'a>[src]

impl<'a> Copy for PathSource<'a>[src]

impl<'a> Debug for PathSource<'a>[src]

Auto Trait Implementations

impl<'a> !RefUnwindSafe for PathSource<'a>

impl<'a> !Send for PathSource<'a>

impl<'a> !Sync for PathSource<'a>

impl<'a> Unpin for PathSource<'a>

impl<'a> !UnwindSafe for PathSource<'a>

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.