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

enum Disambiguator {
    Primitive,
    Kind(DefKind),
    Namespace(Namespace),
}

Disambiguators for a link.

Variants

Primitive

prim@

This is buggy, see https://github.com/rust-lang/rust/pull/77875#discussion_r503583103

Kind(DefKind)

struct@ or f()

Namespace(Namespace)

type@

Implementations

impl Disambiguator[src]

fn display_for(&self, path: &str) -> String[src]

The text that should be displayed when the path is rendered as HTML.

NOTE: path is not the original link given by the user, but a name suitable for passing to resolve.

fn from_str(link: &str) -> Result<(Self, &str), ()>[src]

Given a link, parse and return (disambiguator, path_str)

fn from_res(res: Res) -> Self[src]

fn suggestion(self) -> Suggestion[src]

Used for error reporting.

fn ns(self) -> Namespace[src]

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

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

Trait Implementations

impl Clone for Disambiguator[src]

impl Copy for Disambiguator[src]

impl Debug for Disambiguator[src]

impl Eq for Disambiguator[src]

impl Hash for Disambiguator[src]

impl PartialEq<Disambiguator> for Disambiguator[src]

impl StructuralEq for Disambiguator[src]

impl StructuralPartialEq for Disambiguator[src]

Auto Trait Implementations

impl RefUnwindSafe for Disambiguator

impl Send for Disambiguator

impl Sync for Disambiguator

impl Unpin for Disambiguator

impl UnwindSafe for Disambiguator

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]