pub(crate) enum HrefError {
DocumentationNotBuilt,
Private,
NotInExternalCache,
}
Variants§
DocumentationNotBuilt
This item is known to rustdoc, but from a crate that does not have documentation generated.
This can only happen for non-local items.
Example
Crate a
defines a public trait and crate b
– the target crate that depends on a
–
implements it for a local type.
We document b
but not a
(we only build the latter – with rustc
):
rustc a.rs --crate-type=lib
rustdoc b.rs --crate-type=lib --extern=a=liba.rlib
Now, the associated items in the trait impl want to link to the corresponding item in the
trait declaration (see html::render::assoc_href_attr
) but it’s not available since their
documentation (was) not built.
Private
This can only happen for non-local items when --document-private-items
is not passed.
NotInExternalCache
Trait Implementations§
source§impl PartialEq<HrefError> for HrefError
impl PartialEq<HrefError> for HrefError
impl Eq for HrefError
impl StructuralEq for HrefError
impl StructuralPartialEq for HrefError
Auto Trait Implementations§
impl RefUnwindSafe for HrefError
impl Send for HrefError
impl Sync for HrefError
impl Unpin for HrefError
impl UnwindSafe for HrefError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
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: 1 byte
Size for each variant:
DocumentationNotBuilt
: 0 bytesPrivate
: 0 bytesNotInExternalCache
: 0 bytes