pub enum AstNodeKind {
Show 13 variants
Function,
Class,
Struct,
Enum,
Interface,
Trait,
Module,
Variable,
Constant,
Type,
Import,
Comment,
Other,
}
Expand description
AST node kind classification
Variants§
Implementations§
Source§impl AstNodeKind
impl AstNodeKind
Sourcepub fn from_node_type(node_type: &str) -> Self
pub fn from_node_type(node_type: &str) -> Self
Determine node kind from tree-sitter node type
Trait Implementations§
Source§impl Clone for AstNodeKind
impl Clone for AstNodeKind
Source§fn clone(&self) -> AstNodeKind
fn clone(&self) -> AstNodeKind
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for AstNodeKind
impl Debug for AstNodeKind
Source§impl<'de> Deserialize<'de> for AstNodeKind
impl<'de> Deserialize<'de> for AstNodeKind
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
Source§impl Hash for AstNodeKind
impl Hash for AstNodeKind
Source§impl PartialEq for AstNodeKind
impl PartialEq for AstNodeKind
Source§impl Serialize for AstNodeKind
impl Serialize for AstNodeKind
impl Copy for AstNodeKind
impl Eq for AstNodeKind
impl StructuralPartialEq for AstNodeKind
Auto Trait Implementations§
impl Freeze for AstNodeKind
impl RefUnwindSafe for AstNodeKind
impl Send for AstNodeKind
impl Sync for AstNodeKind
impl Unpin for AstNodeKind
impl UnwindSafe for AstNodeKind
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.