[][src]Trait rowan::Types

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

type Kind: Debug + Copy + Eq + Send + Sync

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

type RootData: Debug + Send + Sync

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.

Loading content...

Implementors

Loading content...