Module rustc_metadata::schema[][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 index;
use rustc::hir;
use rustc::hir::def;
use rustc::hir::def::CtorKind;
use rustc::hir::def_id::DefIndex;
use rustc::hir::def_id::DefId;
use rustc::hir::def_id::CrateNum;
use rustc::ich::StableHashingContext;
use rustc::middle::cstore::DepKind;
use rustc::middle::cstore::LinkagePreference;
use rustc::middle::cstore::NativeLibrary;
use rustc::middle::cstore::ForeignModule;
use rustc::middle::lang_items;
use rustc::mir;
use rustc::session::CrateDisambiguator;
use rustc::ty;
use rustc::ty::Ty;
use rustc::ty::ReprOptions;
use rustc_target::spec::PanicStrategy;
use rustc_target::spec::TargetTriple;
use rustc_serialize as serialize;
use syntax::ast;
use syntax::attr;
use syntax::edition::Edition;
use syntax::symbol::Symbol;
use syntax_pos;
use syntax_pos::Span;
use std::marker::PhantomData;
use std::mem;
use rustc_data_structures::stable_hasher::StableHasher;
use rustc_data_structures::stable_hasher::HashStable;
use rustc_data_structures::stable_hasher::StableHasherResult;

Structs

ClosureData [
Experimental
]
ConstQualif [
Experimental
]

Additional data for EntryKind::Const and EntryKind::AssociatedConst

CrateDep [
Experimental
]
CrateRoot [
Experimental
]
EncodedExportedSymbols [
Experimental
]
Entry [
Experimental
]
FnData [
Experimental
]
GeneratorData [
Experimental
]
ImplData [
Experimental
]
Lazy [
Experimental
]

A value of type T referred to by its absolute position in the metadata, and which can be decoded lazily.

LazySeq [
Experimental
]

A sequence of type T referred to by its absolute position in the metadata and length, and which can be decoded lazily. The sequence is a single node for the purposes of Lazy.

MacroDef [
Experimental
]
MethodData [
Experimental
]
ModData [
Experimental
]
RenderedConst [
Experimental
]

Contains a constant which has been rendered to a String. Used by rustdoc.

TraitData [
Experimental
]
TraitImpls [
Experimental
]
VariantData [
Experimental
]

Enums

AssociatedContainer [
Experimental
]

Describes whether the container of an associated item is a trait or an impl and whether, in a trait, it has a default, or an in impl, whether it's marked "default".

EntryKind [
Experimental
]
LazyState [
Experimental
]

Encoding / decoding state for Lazy and LazySeq.

Constants

METADATA_HEADER [
Experimental
]

Metadata header which includes METADATA_VERSION. To get older versions of rustc to ignore this metadata, there are 4 zero bytes at the start, which are treated as a length of 0 by old compilers.

METADATA_VERSION [
Experimental
]

Metadata encoding version. NB: increment this if you change the format of metadata such that the rustc version can't be found to compare with rustc_version().

TAG_INVALID_SPAN [
Experimental
]
TAG_VALID_SPAN [
Experimental
]

Functions

rustc_version [
Experimental
]