pub enum NodeKind {
Show 31 variants
Module,
Class,
Function,
Method,
Parameter,
Variable,
Call,
Import,
Literal,
Route,
SqlQuery,
Event,
Trait,
Impl,
Struct,
Enum,
Mod,
Macro,
Lifetime,
Use,
Pub,
Const,
Static,
TypeAlias,
Union,
AssociatedType,
AssociatedConst,
Field,
Variant,
Attribute,
Unknown,
}
Expand description
Types of nodes in the Universal AST for Rust
Variants§
Module
A module or file
Class
A class definition (for compatibility)
Function
A function definition
Method
A method definition
Parameter
A function/method parameter
Variable
A variable declaration
Call
A function/method call
Import
An import statement
Literal
A literal value
Route
An HTTP route definition
SqlQuery
A SQL query
Event
An event emission
Trait
A trait definition
Impl
An implementation block (impl)
Struct
A struct definition
Enum
An enum definition
Mod
A module definition (mod)
Macro
A macro definition or invocation
Lifetime
A lifetime parameter
Use
A use statement (import)
Pub
A pub modifier (visibility)
Const
A const declaration
Static
A static declaration
TypeAlias
A type alias
Union
A union definition
AssociatedType
An associated type
AssociatedConst
An associated const
Field
A field in a struct/enum
Variant
An enum variant
Attribute
An attribute
Unknown
Unknown node type
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 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