Enum rustdoc::passes::collect_intra_doc_links::Disambiguator [−][src]
Expand description
Disambiguators for a link.
Variants
Expand description
prim@
This is buggy, see https://github.com/rust-lang/rust/pull/77875#discussion_r503583103
Kind(DefKind)Expand description
struct@ or f()
Namespace(Namespace)Expand description
type@
Implementations
impl Disambiguator[src]
impl Disambiguator[src]fn display_for(&self, path: &str) -> String[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<Option<(Self, &str)>, (String, Range<usize>)>[src]
fn from_str(link: &str) -> Result<Option<(Self, &str)>, (String, Range<usize>)>[src]Given a link, parse and return (disambiguator, path_str).
This returns Ok(Some(...)) if a disambiguator was found,
Ok(None) if no disambiguator was found, or Err(...)
if there was a problem with the disambiguator.
fn from_res(res: Res) -> Self[src]
fn suggestion(self) -> Suggestion[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 Clone for Disambiguator[src]fn clone(&self) -> Disambiguator[src]
fn clone(&self) -> Disambiguator[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]Performs copy-assignment from source. Read more
impl Debug for Disambiguator[src]
impl Debug for Disambiguator[src]impl Hash for Disambiguator[src]
impl Hash for Disambiguator[src]impl PartialEq<Disambiguator> for Disambiguator[src]
impl PartialEq<Disambiguator> for Disambiguator[src]fn eq(&self, other: &Disambiguator) -> bool[src]
fn eq(&self, other: &Disambiguator) -> bool[src]This method tests for self and other values to be equal, and is used
by ==. Read more
fn ne(&self, other: &Disambiguator) -> bool[src]
fn ne(&self, other: &Disambiguator) -> bool[src]This method tests for !=.
impl Copy for Disambiguator[src]
impl Eq 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> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T[src]
impl<T> Instrument for T[src]fn instrument(self, span: Span) -> Instrumented<Self>[src]
fn instrument(self, span: Span) -> Instrumented<Self>[src]Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>[src]
fn in_current_span(self) -> Instrumented<Self>[src]impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>, pub fn vzip(self) -> V
impl<T> WithConstness for T[src]
impl<T> WithConstness for T[src]fn with_constness(self, constness: Constness) -> ConstnessAnd<Self>[src]
fn with_const(self) -> ConstnessAnd<Self>[src]
fn without_const(self) -> ConstnessAnd<Self>[src]
impl<'a, T> Captures<'a> for T where
T: ?Sized, [src]
T: ?Sized,