Module buffer

Source
Expand description

A stably addressed token buffer supporting efficient traversal based on a cheaply copyable cursor.

Structsยง

Cursor
A cheaply copyable cursor into a TokenBuffer.
TokenBuffer
A buffer that can be efficiently traversed multiple times, unlike TokenStream which requires a deep copy in order to traverse more than once.

Enumsยง

Entry ๐Ÿ”’
Internal type which is used instead of TokenTree to represent a token tree within a TokenBuffer.

Functionsยง

cmp_assuming_same_buffer ๐Ÿ”’
open_span_of_group ๐Ÿ”’
same_buffer ๐Ÿ”’
same_scope ๐Ÿ”’
start_of_buffer ๐Ÿ”’