Expand description
§Universally useful structures
- Span: Stores a start and end position in a named stream
- DroplessInterner & StringInterner: Provides stable, unique allocations
- Stack: Contiguous collections with constant capacity
- IndexMap: A map from map indices to values
Modules§
- dropless_
arena - A DroplessArena can hold any combination of types as long as they don’t implement Drop.
- index_
map - Trivially-copyable, easily comparable typed indices, and an IndexMap to contain them.
- intern
- Interners for strings and non-Drop types.
- span
- Span: Stores the start and end position of a notable AST node
- stack
- A contiguous collection with constant capacity.
- tree
- An insert-only unordered tree, backed by a Vec
- typed_
arena - A TypedArena can hold many instances of a single type, and will properly Drop them.
Macros§
- make_
index - Creates newtype indices over
usizefor use as IndexMap keys.