[][src]Crate rowan

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

Re-exports

pub use crate::api::*;

Modules

api
cursor

Structs

Checkpoint

A checkpoint for maybe wrapping a node. See GreenNodeBuilder::checkpoint for details.

GreenNode

Internal node in the immutable tree. It has other nodes and tokens as children.

GreenNodeBuilder

A builder for a green tree.

GreenToken

Leaf node in the immutable tree.

SmolStr

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

SyntaxText
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

Direction
NodeOrToken
TokenAtOffset

There might be zero, one or two leaves at a given offset.

WalkEvent

WalkEvent describes tree walking process.