Expand description
§solar-data-structures
Common data structures and utilities for the Solar compiler.
Mostly modified from rustc_data_structures.
Modules§
- cycle
- fmt
- hint
- index
- Index types. See
::index_vec. - map
- Map types.
- smallvec
- Small vectors in various sizes. These store a certain number of elements inline, and fall back to the heap for larger allocations. This can be a useful optimization for improving cache locality and reducing allocator traffic for workloads that fit within the inline buffer.
- sync
- trustme
Macros§
- cdr_try
?forCycleDetectorResult.- newtype_
index - Creates a new index to use with
::index_vec. - parallel
- Executes the given expressions in parallel.
Structs§
- Drop
Guard - Runs
FonTwhen the instance is dropped. - Interned
- A reference to a value that is interned, and is known to be unique.
- RawThin
Slice ThinSlicewith a custom header.
Traits§
- BumpExt
- Extension trait for
Bump. - Collect
AndApply - Implements
f(&iter.collect::<Vec<_>>())more efficiently.
Functions§
- defer
- Returns a structure that calls
fwhen dropped. - outline
- This calls the passed function while ensuring it won’t be inlined into the caller.