Module unrest_tmp_synom::cursor [] [src]

This module defines a cheaply-copyable cursor into a TokenStream's data.

It does this by copying the data into a stably-addressed structured buffer, and holding raw pointers into that buffer to allow walking through delimited sequences cheaply.

This module is heavily commented as it contains the only unsafe code in syn, and caution should be made when editing it. It provides a safe interface, but is fragile internally.

Structs

Cursor

A cursor into an input TokenStream's data. This cursor holds a reference into the immutable data which is used internally to represent a TokenStream, and can be efficiently manipulated and copied around.

SeqInfo
SynomBuffer

A buffer of data which contains a structured representation of the input TokenStream object.