Struct phile::ast::Node
[−]
[src]
pub struct Node<T> {
pub kind: T,
pub range: Range,
}Generic AST node (helper for Exp, Ty, etc.)
Fields
kind: T
Discriminant describing the type and value of the node.
range: Range
Source range that this node was generated from.
Trait Implementations
impl<T: Debug> Debug for Node<T>[src]
impl<T: PartialEq> PartialEq for Node<T>[src]
fn eq(&self, __arg_0: &Node<T>) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &Node<T>) -> bool
This method tests for !=.
impl<T: Eq> Eq for Node<T>[src]
impl<T: Hash> Hash for Node<T>[src]
fn hash<__HT: Hasher>(&self, __arg_0: &mut __HT)
Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher]. Read more