Struct rustc_metadata::index::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?
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.
Fields
positions: [Vec<u32>; 2]
🔬 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?
Methods
impl Index
[src]
impl Index
pub fn new((max_index_lo, max_index_hi): (usize, usize)) -> Index
[src]
pub fn new((max_index_lo, max_index_hi): (usize, usize)) -> Index
🔬 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?
pub fn record(&mut self, def_id: DefId, entry: Lazy<Entry>)
[src]
pub fn record(&mut self, def_id: DefId, entry: Lazy<Entry>)
🔬 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?
pub fn record_index(&mut self, item: DefIndex, entry: Lazy<Entry>)
[src]
pub fn record_index(&mut self, item: DefIndex, entry: Lazy<Entry>)
🔬 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?
pub fn write_index(&self, buf: &mut Cursor<Vec<u8>>) -> LazySeq<Index>
[src]
pub fn write_index(&self, buf: &mut Cursor<Vec<u8>>) -> LazySeq<Index>
🔬 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?