Enum rustdoc::passes::collect_intra_doc_links::Disambiguator [−][src]
Disambiguators for a link.
Variants
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]
fn clone(&self) -> Disambiguator[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Copy for Disambiguator[src]
impl Debug for Disambiguator[src]
impl Eq for Disambiguator[src]
impl Hash for Disambiguator[src]
fn hash<__H: Hasher>(&self, state: &mut __H)[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
impl PartialEq<Disambiguator> for Disambiguator[src]
fn eq(&self, other: &Disambiguator) -> bool[src]
fn ne(&self, other: &Disambiguator) -> bool[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T> Instrument for T[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,