Skip to main content
Module interner
rustc_
type_
ir
1.100.0-nightly
(bff8e12ff 2026-08-26)
Module interner
Module Items
Macros
Traits
In crate rustc_
type_
ir
rustc_type_ir
Module
interner
Copy item path
Source
Macros
§
declare_
lift_
into
🔒
Traits
§
Collect
AndApply
Imagine you have a function
F: FnOnce(&[T]) -> R
, plus an iterator
iter
that produces
T
items. You could combine them with
f(&iter.collect::<Vec<_>>())
, but this requires allocating memory for the
Vec
.
Interner
The central trait in the shared abstraction layer, specifying all implementation-specific details for rustc and rust-analyzer.
Lift
Into
An interner whose associated types can be lifted into another interner
J
.