[−][src]Enum rustdoc::passes::collect_intra_doc_links::Disambiguator
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]
pub(in passes::collect_intra_doc_links) fn display_for(
&self,
path: &str
) -> String[src]
&self,
path: &str
) -> String
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]
link: &str
) -> Result<(Self, &str), ()>
Given a link, parse and return (disambiguator, path_str)
pub(in passes::collect_intra_doc_links) fn from_res(
res: Res
) -> Self[src]
res: Res
) -> Self
WARNING: panics on Res::Err
pub(in passes::collect_intra_doc_links) fn suggestion(
self
) -> Suggestion[src]
self
) -> Suggestion
Used for error reporting.
pub(in passes::collect_intra_doc_links) fn ns(
self
) -> Namespace[src]
self
) -> Namespace
pub(in passes::collect_intra_doc_links) fn article(
self
) -> &'static str[src]
self
) -> &'static str
pub(in passes::collect_intra_doc_links) fn descr(
self
) -> &'static str[src]
self
) -> &'static str
Trait Implementations
impl Clone for Disambiguator[src]
pub 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 PartialEq<Disambiguator> for Disambiguator[src]
pub fn eq(&self, other: &Disambiguator) -> bool[src]
pub 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, 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>,