pub enum DocumentableItemId {
Crate(CrateId),
LookupItem(LookupItemId),
Member(MemberId),
Variant(VariantId),
}
Expand description
Item whose documentation can be fetched from source code.
Variants§
Implementations§
Source§impl DocumentableItemId
impl DocumentableItemId
pub fn stable_location(&self, db: &dyn DefsGroup) -> Option<StableLocation>
Trait Implementations§
Source§impl Clone for DocumentableItemId
impl Clone for DocumentableItemId
Source§fn clone(&self) -> DocumentableItemId
fn clone(&self) -> DocumentableItemId
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DocumentableItemId
impl Debug for DocumentableItemId
Source§impl From<CrateId> for DocumentableItemId
impl From<CrateId> for DocumentableItemId
Source§impl From<LookupItemId> for DocumentableItemId
impl From<LookupItemId> for DocumentableItemId
Source§fn from(value: LookupItemId) -> Self
fn from(value: LookupItemId) -> Self
Converts to this type from the input type.
Source§impl From<MemberId> for DocumentableItemId
impl From<MemberId> for DocumentableItemId
Source§impl From<VariantId> for DocumentableItemId
impl From<VariantId> for DocumentableItemId
Source§impl Hash for DocumentableItemId
impl Hash for DocumentableItemId
Source§impl PartialEq for DocumentableItemId
impl PartialEq for DocumentableItemId
impl Copy for DocumentableItemId
impl Eq for DocumentableItemId
impl StructuralPartialEq for DocumentableItemId
Auto Trait Implementations§
impl Freeze for DocumentableItemId
impl RefUnwindSafe for DocumentableItemId
impl Send for DocumentableItemId
impl Sync for DocumentableItemId
impl Unpin for DocumentableItemId
impl UnwindSafe for DocumentableItemId
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
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>
Converts
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>
Converts
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 more