pub enum NodeKind {
Show 14 variants
Function,
Method,
Class,
Interface,
Struct,
Enum,
Variable,
Constant,
TypeAlias,
Module,
Import,
Export,
Constructor,
Field,
}Expand description
The kind of code entity this node represents.
We intentionally keep this list focused on the entities that matter for understanding code structure. Helper nodes like expressions or statements are filtered out during extraction.
Variants§
Function
A standalone function (not attached to a class).
Method
A method inside a class or impl block.
Class
A class definition.
Interface
An interface, protocol, or trait.
Struct
A struct (Rust, Go).
Enum
An enum definition.
Variable
A module-level variable.
Constant
A constant or static value.
TypeAlias
A type alias.
Module
The file/module itself as a container.
Import
An import statement.
Export
An export declaration.
Constructor
A constructor (Java, TypeScript class constructors).
Field
A class field.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NodeKind
impl<'de> Deserialize<'de> for NodeKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for NodeKind
impl Eq for NodeKind
impl StructuralPartialEq for NodeKind
Auto Trait Implementations§
impl Freeze for NodeKind
impl RefUnwindSafe for NodeKind
impl Send for NodeKind
impl Sync for NodeKind
impl Unpin for NodeKind
impl UnsafeUnpin for NodeKind
impl UnwindSafe for NodeKind
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