Module rustc_metadata::index[][src]

🔬 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?

Re-exports

use schema::*;
use rustc::hir::def_id::DefId;
use rustc::hir::def_id::DefIndex;
use rustc::hir::def_id::DefIndexAddressSpace;
use std::io::Cursor;
use std::io::Write;
use std::slice;
use std::u32;

Structs

Index [
Experimental
]

While we are generating the metadata, we also track the position of each DefIndex. It is not required that all definitions appear in the metadata, nor that they are serialized in order, and therefore we first allocate the vector here and fill it with u32::MAX. Whenever an index is visited, we fill in the appropriate spot by calling record_position. We should never visit the same index twice.

Unaligned [
Experimental
]

Functions

bytes_to_words [
Experimental
]
words_to_bytes [
Experimental
]