Skip to main content

Crate zhc_utils

Crate zhc_utils 

Source
Expand description

Utility data structures and algorithms for compiler infrastructure.

This crate provides specialized collections and utilities optimized for compiler workloads, including stack-allocated containers for small data, type-safe indices, and iterator extensions.

Modules§

assert_display
Runtime support for assert_display_is! macro.
data_visulization
graphics
Geometry types for 2D graphics and layout systems.
iter
small
tracing
A module containing tools to generate traces in the TraceEvent json format.

Macros§

assert_display_is
Inline snapshot testing macro.
svec
Creates a SmallVec containing the provided elements.
varr
Creates a VArray containing the provided elements.

Structs§

BiMap
ChangeGuard
A smart pointer that tracks changes to a value when dropped.
CoDomain
Domain
Fifo
A fixed-capacity first-in-first-out queue with circular buffer implementation.
Store
A vector-like container that uses typed indices for element access.

Enums§

DeadOrAlive
A value that can be marked as live or erased while preserving the underlying data.

Traits§

Dumpable
A type that can render itself as a human-readable string for debugging.
StoreIndex
A trait for types that can be used as typed indices into a Store.

Functions§

n_bits_to_encode
type_name_of_val
Returns the type name of a value with module paths trimmed.

Type Aliases§

FastMap
A hash map optimized for fast hashing performance.
FastSet
A hash set optimized for fast hashing performance.

Attribute Macros§

fsm