Enum rustdoc::passes::collect_intra_doc_links::Disambiguator [−][src]
Expand description
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()
Tuple Fields of Kind
0: DefKind
Namespace(Namespace)
type@
Tuple Fields of Namespace
0: Namespace
Implementations
Given a link, parse and return (disambiguator, path_str, link_text)
.
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.
Used for error reporting.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
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
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 4 bytes
Size for each variant:
Primitive
: 0 bytesKind
: 3 bytesNamespace
: 1 byte