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§
impl Eq for HrefError
impl StructuralPartialEq for HrefError
Auto Trait Implementations§
impl Freeze for HrefError
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.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> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
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