pub struct NormalizeNode {
pub kind: String,
pub children: Vec<NormalizeNode>,
}Expand description
A node in the pattern AST subtree for crate::normalize_and_hash.
§Examples
use sdivi_core::input::NormalizeNode;
let leaf = NormalizeNode { kind: "try_expression".to_string(), children: vec![] };Fields§
§kind: StringTree-sitter node kind.
children: Vec<NormalizeNode>Ordered children.
Trait Implementations§
Source§impl Clone for NormalizeNode
impl Clone for NormalizeNode
Source§fn clone(&self) -> NormalizeNode
fn clone(&self) -> NormalizeNode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 NormalizeNode
impl Debug for NormalizeNode
Source§impl<'de> Deserialize<'de> for NormalizeNode
impl<'de> Deserialize<'de> for NormalizeNode
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 PartialEq for NormalizeNode
impl PartialEq for NormalizeNode
Source§fn eq(&self, other: &NormalizeNode) -> bool
fn eq(&self, other: &NormalizeNode) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for NormalizeNode
impl Serialize for NormalizeNode
impl StructuralPartialEq for NormalizeNode
Auto Trait Implementations§
impl Freeze for NormalizeNode
impl RefUnwindSafe for NormalizeNode
impl Send for NormalizeNode
impl Sync for NormalizeNode
impl Unpin for NormalizeNode
impl UnsafeUnpin for NormalizeNode
impl UnwindSafe for NormalizeNode
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