Crate rowan[][src]

A generic library for lossless syntax trees. See examples/s_expressions.rs for a tutorial.

Structs

GreenNode

GreenNode is an immutable syntax tree, which is cheap to update. It lacks parent pointers and information about offsets.

GreenNodeBuilder

A builder for a green tree.

OwnedRoot

TreeRoot for owned flavor of SyntaxNode.

RefRoot

TreeRoot for borrowed flavor of SyntaxNode.

SmolStr

A SmolStr is a string type that has the following properties:

SyntaxNode

An immutable lazy constructed syntax tree with offsets and parent pointers.

SyntaxNodeChildren

Iterator over node's children.

TextRange

A range in the text, represented as a pair of TextUnits.

TextUnit

An offset into text. Offset is represented as u32 storing number of utf8-bytes, but most of the clients should treat it like opaque measure.

Enums

WalkEvent

WalkeEvent describes tree walking process.

Traits

TreeRoot

A marker trait to distinguish between owned and borrowed trees. You don't need to implement it yourself, use existing OwnedRoot or RefRoot.

Types

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