Trait rowan::Types[][src]

pub trait Types: Send + Sync + 'static {
    type Kind: Debug + Copy + Eq + Send + Sync;
    type RootData: Debug + Send + Sync;
}

Types customizes data, stored in the syntax tree. All types in this crate are parametrized over T: Types.

Associated Types

Kind is stored in each node and designates it's class. Typically it is a fieldless enum.

RootData is stored in the root of the syntax trees. It can be just (), but you can use it to store, for example, syntax errors.

Implementors