Module rustc::ty::codec [−][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 hir::def_id::DefId; |
use hir::def_id::CrateNum; |
use infer::canonical::CanonicalVarInfo; |
use infer::canonical::CanonicalVarInfos; |
use rustc_data_structures::fx::FxHashMap; |
use rustc_data_structures::fx::FxHashMap; |
use rustc_serialize::Decodable; |
use rustc_serialize::Decoder; |
use rustc_serialize::Encoder; |
use rustc_serialize::Encodable; |
use rustc_serialize::opaque; |
use std::hash::Hash; |
use std::intrinsics; |
use ty; |
use ty::Ty; |
use ty::TyCtxt; |
use ty::subst::Substs; |
use mir::interpret::Allocation; |
Constants
SHORTHAND_OFFSET |
[ Experimental ] The shorthand encoding uses an enum's variant index |
Traits
EncodableWithShorthand |
[ Experimental ]
|
TyDecoder |
[ Experimental ]
|
TyEncoder |
[ Experimental ]
|
Functions
decode_adt_def |
[ Experimental ]
|
decode_allocation |
[ Experimental ]
|
decode_canonical_var_infos |
[ Experimental ]
|
decode_cnum |
[ Experimental ]
|
decode_const |
[ Experimental ]
|
decode_existential_predicate_slice |
[ Experimental ]
|
decode_predicates |
[ Experimental ]
|
decode_region |
[ Experimental ]
|
decode_substs |
[ Experimental ]
|
decode_ty |
[ Experimental ]
|
decode_ty_slice |
[ Experimental ]
|
encode_predicates |
[ Experimental ]
|
encode_with_shorthand |
[ Experimental ] Encode the given value or a previously cached shorthand. |