Struct phile::ast::Node [] [src]

pub struct Node<T> {
    pub kind: T,
    pub range: Range,
}

Generic AST node (helper for Exp, Ty, etc.)

Fields

Discriminant describing the type and value of the node.

Source range that this node was generated from.

Trait Implementations

impl<T: Debug> Debug for Node<T>
[src]

Formats the value using the given formatter.

impl<T: PartialEq> PartialEq for Node<T>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<T: Eq> Eq for Node<T>
[src]

impl<T: Hash> Hash for Node<T>
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl<T> Ranged for Node<T>
[src]

Returns the range self was generated from.