# syn::buffer - Rust
API documentation for the Rust `buffer` mod in crate `syn`.
Keywords: rust, rustlang, rust-lang, buffer

# [−] [src] Module syn::buffer

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

This module is available only if Syn is built with the `"parsing"` feature.

## 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.