Type Definition rustc::hir::HirVec
[−]
[src]
type HirVec<T> = P<[T]>;
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
HIR doesn't commit to a concrete storage type and has its own alias for a vector.
It can be Vec
, P<[T]>
or potentially Box<[T]>
, or some other container with similar
behavior. Unlike AST, HIR is mostly a static structure, so we can use an owned slice instead
of Vec
to avoid keeping extra capacity.