#[non_exhaustive]pub enum SymbolKind {
Show 22 variants
Module,
Function,
Record,
Sum,
Variant,
Class,
Mixin,
Interface,
Impl,
Alias,
AssocType,
Const,
Global,
Import,
Local,
Param,
Capture,
TypeParam,
ConstParam,
Region,
Label,
External,
}Expand description
What kind of thing a definition is, for symbol lists and icons.
§Examples
use resolve_lang::SymbolKind;
assert_eq!(SymbolKind::Function.name(), "function");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.
Module
A module.
Function
A function or method.
Record
A record.
Sum
A sum.
Variant
A sum variant.
Class
A class.
Mixin
A mixin (PHP trait).
Interface
An interface.
Impl
An impl block.
Alias
A type alias.
AssocType
An associated type.
Const
A constant.
Global
A global.
Import
An aliased import (use x as y): y is renameable on its own.
Local
A local variable.
Param
A parameter.
Capture
An explicit capture or a closure’s self binder.
TypeParam
A type parameter.
ConstParam
A const parameter.
Region
A region parameter.
Label
A loop or block label.
External
Something outside the program (another package, a host symbol): it has references but no location.
Implementations§
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 PartialEq for SymbolKind
impl PartialEq for SymbolKind
impl StructuralPartialEq for SymbolKind
Auto Trait Implementations§
impl Freeze 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