Enum rustdoc::passes::collect_intra_doc_links::Res[−][src]

enum Res {
    Def(DefKind, DefId),
    Primitive(PrimitiveType),
}

Variants

Def(DefKind, DefId)
Primitive(PrimitiveType)

Implementations

impl Res[src]

fn descr(self) -> &'static str[src]

fn article(self) -> &'static str[src]

fn name(self, tcx: TyCtxt<'_>) -> String[src]

fn def_id(self) -> DefId[src]

fn opt_def_id(self) -> Option<DefId>[src]

fn as_hir_res(self) -> Option<Res>[src]

Trait Implementations

impl Clone for Res[src]

impl Copy for Res[src]

impl Debug for Res[src]

impl Hash for Res[src]

impl TryFrom<Res<NodeId>> for Res[src]

type Error = ()

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for Res

impl Send for Res

impl Sync for Res

impl Unpin for Res

impl UnwindSafe for Res

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

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

impl<T> WithConstness for T[src]