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

pub(in passes::collect_intra_doc_links) 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]

pub(in passes::collect_intra_doc_links) 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.

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

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

pub(in passes::collect_intra_doc_links) fn from_res(
    res: Res
) -> Self
[src]

WARNING: panics on Res::Err

pub(in passes::collect_intra_doc_links) fn suggestion(
    self
) -> Suggestion
[src]

Used for error reporting.

pub(in passes::collect_intra_doc_links) fn ns(
    self
) -> Namespace
[src]

pub(in passes::collect_intra_doc_links) fn article(
    self
) -> &'static str
[src]

pub(in passes::collect_intra_doc_links) 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 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, 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]