[−][src]Crate rustc_data_structures
Various data structures used by the Rust compiler. The intention is that code in here should be not be specific to rustc, so that it can be easily unit tested and so forth.
Note
This API is completely unstable and subject to change.
Modules
base_n | |
bit_set | |
const_cstr | |
fingerprint | |
flock | Simple file-locking apis for each OS. |
fx | |
graph | |
indexed_vec | |
interner | |
macros | |
obligation_forest | The |
owning_ref | An owning reference. |
ptr_key | |
sip128 | This is a copy of |
small_c_str | |
snapshot_map | |
snapshot_vec | A utility class for implementing "snapshottable" things; a snapshottable data structure permits
you to take a snapshot (via |
sorted_map | |
stable_hasher | |
svh | Calculation and management of a Strict Version Hash for crates |
sync | This module defines types which are thread safe if cfg!(parallel_compiler) is true. |
thin_vec | |
tiny_list | A singly-linked list. |
transitive_relation | |
unify | Union-find implementation. The main type is |
vec_linked_list | |
work_queue |
Macros
const_cstr | This macro creates a zero-overhead &CStr by adding a NUL terminator to the string literal passed into it at compile-time. Use it like: |
impl_stable_hash_via_hash | |
likely | |
newtype_index | Creates a struct type |
rustc_erase_owner | |
static_assert | A simple static assertion macro. The first argument should be a unique ALL_CAPS identifier that describes the condition. |
unlikely |
Structs
OnDrop |
Traits
ToHex | A trait for converting a value to hexadecimal encoding |