#[non_exhaustive]pub enum SymbolKind {
Show 20 variants
Fn,
Struct,
Enum,
Union,
Trait,
TypeAlias,
Const,
Static,
Mod,
MacroRules,
ExternCrate,
ForeignFn,
ForeignStatic,
ForeignType,
InherentMethod,
TraitImplMethod,
TraitDefaultMethod,
TraitRequiredMethod,
AssocConst,
AssocType,
}Expand description
What an indexed item is.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Fn
A function.
Struct
A struct.
Enum
An enum.
Union
A union.
Trait
A trait.
TypeAlias
A type alias.
Const
A constant.
Static
A static.
Mod
A module, inline or in its own file.
MacroRules
A macro_rules! definition. A #[macro_export] macro is indexed at
the crate root.
ExternCrate
An extern crate item.
ForeignFn
A function declared in an extern block.
ForeignStatic
A static declared in an extern block.
ForeignType
A type declared in an extern block.
InherentMethod
A method or associated function of an inherent impl block.
TraitImplMethod
A method or associated function of a trait impl block.
TraitDefaultMethod
A trait method that has a default body.
TraitRequiredMethod
A trait method that has no body.
AssocConst
An associated constant of a trait or an impl block.
AssocType
An associated type of a trait or an impl block.
Trait Implementations§
Source§impl Clone for SymbolKind
impl Clone for SymbolKind
impl Copy for SymbolKind
Source§impl Debug for SymbolKind
impl Debug for SymbolKind
impl Eq for SymbolKind
Source§impl Hash for SymbolKind
impl Hash for SymbolKind
Source§impl Ord for SymbolKind
impl Ord for SymbolKind
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for SymbolKind
impl PartialEq for SymbolKind
Source§impl PartialOrd for SymbolKind
impl PartialOrd for SymbolKind
impl StructuralPartialEq for SymbolKind
Auto Trait Implementations§
impl Forget for SymbolKind
impl Freeze for SymbolKind
impl Move for SymbolKind
impl RefUnwindSafe for SymbolKind
impl Send for SymbolKind
impl Sync for SymbolKind
impl Unpin for SymbolKind
impl UnsafeUnpin for SymbolKind
impl UnwindSafe for SymbolKind
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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
Whether this borrowed key equals the stored key.
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.impl<T> EvidenceLease for T
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