pub enum Kind {
Class,
Module,
Method,
Function,
Struct,
Enum,
Trait,
}Expand description
The kind of definition a Symbol represents.
A small, language-agnostic vocabulary of definition kinds — the shared
model every plugin maps onto, deliberately generalized rather than per
language (Rust’s struct/enum/trait sit beside Ruby’s class/module).
It covers definitions only: call graphs, references, and inheritance are
explicit non-goals (see docs/ROADMAP.md). Add a variant when a language
needs a kind the model can’t yet express, not a language-specific one-off.
Variants§
Implementations§
Trait Implementations§
impl Copy for Kind
impl Eq for Kind
impl StructuralPartialEq for Kind
Auto Trait Implementations§
impl Freeze for Kind
impl RefUnwindSafe for Kind
impl Send for Kind
impl Sync for Kind
impl Unpin for Kind
impl UnsafeUnpin for Kind
impl UnwindSafe for Kind
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