pub enum DefKind {
Show 24 variants
Function,
Method,
Class,
Struct,
Enum,
Union,
Trait,
Interface,
TypeAlias,
Impl,
Module,
Namespace,
Macro,
Const,
Static,
Variable,
Table,
View,
Index,
Trigger,
Schema,
Section,
Key,
Heading,
}Expand description
What kind of definition a hit is. Serialised by DefKind::as_str.
Variants§
Function
Method
Class
Struct
Enum
Union
Trait
Interface
TypeAlias
Impl
Module
Namespace
Macro
Const
Static
Variable
Table
SQL CREATE TABLE.
View
SQL CREATE VIEW.
Index
SQL CREATE INDEX.
Trigger
SQL CREATE TRIGGER.
Schema
SQL CREATE SCHEMA.
Section
TOML [table].
Key
TOML / YAML / JSON key.
Heading
Markdown heading.
Implementations§
Trait Implementations§
impl Copy for DefKind
impl Eq for DefKind
impl StructuralPartialEq for DefKind
Auto Trait Implementations§
impl Freeze for DefKind
impl RefUnwindSafe for DefKind
impl Send for DefKind
impl Sync for DefKind
impl Unpin for DefKind
impl UnsafeUnpin for DefKind
impl UnwindSafe for DefKind
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§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.