Skip to main content

Crate cl_structures

Crate cl_structures 

Source
Expand description

§Universally useful structures

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 usize for use as IndexMap keys.