pub enum NodeKind {
Show 15 variants
Folder,
File,
Module,
Struct,
Enum,
Trait,
Interface,
TypeAlias,
Function,
Method,
Property,
Constant,
Macro,
Annotation,
EnumMember,
}Expand description
Every named, referenceable syntactic entity becomes a node of one of these kinds.
Variants§
Folder
File
Module
Struct
Enum
Trait
Rust trait. Languages with a separate notion of interface use NodeKind::Interface.
Interface
Language interface (Java, TypeScript, Go) — semantically distinct from Rust traits.
TypeAlias
Function
Method
Property
Property (Python @property, TypeScript readonly field, getter/setter pair).
Constant
Macro
Annotation
Decorator / annotation declaration (e.g. @dataclass, @Override, #[derive(...)]).
EnumMember
Member of an enum (Color::Red, Direction.NORTH).
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 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