Struct rustc_metadata::isolated_encoder::IsolatedEncoder [−][src]
pub struct IsolatedEncoder<'a, 'b: 'a, 'tcx: 'b> { pub tcx: TyCtxt<'b, 'tcx, 'tcx>, ecx: &'a mut EncodeContext<'b, 'tcx>, }
🔬 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?
The IsolatedEncoder provides facilities to write to crate metadata while making sure that anything going through it is also feed into an ICH hasher.
Fields
tcx: TyCtxt<'b, 'tcx, 'tcx>
🔬 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?
ecx: &'a mut EncodeContext<'b, 'tcx>
🔬 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<'a, 'b: 'a, 'tcx: 'b> IsolatedEncoder<'a, 'b, 'tcx>
[src]
impl<'a, 'b: 'a, 'tcx: 'b> IsolatedEncoder<'a, 'b, 'tcx>
fn encode_variances_of(&mut self, def_id: DefId) -> LazySeq<Variance>
[src]
fn encode_variances_of(&mut self, def_id: DefId) -> LazySeq<Variance>
🔬 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?
fn encode_item_type(&mut self, def_id: DefId) -> Lazy<Ty<'tcx>>
[src]
fn encode_item_type(&mut self, def_id: DefId) -> Lazy<Ty<'tcx>>
🔬 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?
fn encode_enum_variant_info(
&mut self,
(enum_did, Untracked): (DefId, Untracked<usize>)
) -> Entry<'tcx>
[src]
fn encode_enum_variant_info(
&mut self,
(enum_did, Untracked): (DefId, Untracked<usize>)
) -> Entry<'tcx>
🔬 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?
Encode data for the given variant of the given ADT. The index of the variant is untracked: this is ok because we will have to lookup the adt-def by its id, and that gives us the right to access any information in the adt-def (including, e.g., the length of the various vectors).
fn encode_info_for_mod(
&mut self,
FromId: FromId<(&Mod, &[Attribute], &Visibility)>
) -> Entry<'tcx>
[src]
fn encode_info_for_mod(
&mut self,
FromId: FromId<(&Mod, &[Attribute], &Visibility)>
) -> Entry<'tcx>
🔬 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?
fn encode_field(
&mut self,
(adt_def_id, Untracked): (DefId, Untracked<(usize, usize)>)
) -> Entry<'tcx>
[src]
fn encode_field(
&mut self,
(adt_def_id, Untracked): (DefId, Untracked<(usize, usize)>)
) -> Entry<'tcx>
🔬 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?
Encode data for the given field of the given variant of the given ADT. The indices of the variant/field are untracked: this is ok because we will have to lookup the adt-def by its id, and that gives us the right to access any information in the adt-def (including, e.g., the length of the various vectors).
fn encode_struct_ctor(
&mut self,
(adt_def_id, def_id): (DefId, DefId)
) -> Entry<'tcx>
[src]
fn encode_struct_ctor(
&mut self,
(adt_def_id, def_id): (DefId, DefId)
) -> Entry<'tcx>
🔬 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?
fn encode_generics(&mut self, def_id: DefId) -> Lazy<Generics>
[src]
fn encode_generics(&mut self, def_id: DefId) -> Lazy<Generics>
🔬 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?
fn encode_predicates(&mut self, def_id: DefId) -> Lazy<GenericPredicates<'tcx>>
[src]
fn encode_predicates(&mut self, def_id: DefId) -> Lazy<GenericPredicates<'tcx>>
🔬 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?
fn encode_info_for_trait_item(&mut self, def_id: DefId) -> Entry<'tcx>
[src]
fn encode_info_for_trait_item(&mut self, def_id: DefId) -> Entry<'tcx>
🔬 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?
fn metadata_output_only(&self) -> bool
[src]
fn metadata_output_only(&self) -> bool
🔬 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?
fn const_qualif(&self, mir: u8, body_id: BodyId) -> ConstQualif
[src]
fn const_qualif(&self, mir: u8, body_id: BodyId) -> ConstQualif
🔬 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?
fn encode_info_for_impl_item(&mut self, def_id: DefId) -> Entry<'tcx>
[src]
fn encode_info_for_impl_item(&mut self, def_id: DefId) -> Entry<'tcx>
🔬 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?
fn encode_fn_arg_names_for_body(&mut self, body_id: BodyId) -> LazySeq<Name>
[src]
fn encode_fn_arg_names_for_body(&mut self, body_id: BodyId) -> LazySeq<Name>
🔬 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?
fn encode_fn_arg_names(&mut self, names: &[Spanned<Name>]) -> LazySeq<Name>
[src]
fn encode_fn_arg_names(&mut self, names: &[Spanned<Name>]) -> LazySeq<Name>
🔬 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?
fn encode_optimized_mir(&mut self, def_id: DefId) -> Option<Lazy<Mir<'tcx>>>
[src]
fn encode_optimized_mir(&mut self, def_id: DefId) -> Option<Lazy<Mir<'tcx>>>
🔬 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?
fn encode_inherent_implementations(
&mut self,
def_id: DefId
) -> LazySeq<DefIndex>
[src]
fn encode_inherent_implementations(
&mut self,
def_id: DefId
) -> LazySeq<DefIndex>
🔬 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?
fn encode_stability(&mut self, def_id: DefId) -> Option<Lazy<Stability>>
[src]
fn encode_stability(&mut self, def_id: DefId) -> Option<Lazy<Stability>>
🔬 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?
fn encode_deprecation(&mut self, def_id: DefId) -> Option<Lazy<Deprecation>>
[src]
fn encode_deprecation(&mut self, def_id: DefId) -> Option<Lazy<Deprecation>>
🔬 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?
fn encode_rendered_const_for_body(
&mut self,
body_id: BodyId
) -> Lazy<RenderedConst>
[src]
fn encode_rendered_const_for_body(
&mut self,
body_id: BodyId
) -> Lazy<RenderedConst>
🔬 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?
fn encode_info_for_item(
&mut self,
(def_id, item): (DefId, &'tcx Item)
) -> Entry<'tcx>
[src]
fn encode_info_for_item(
&mut self,
(def_id, item): (DefId, &'tcx Item)
) -> Entry<'tcx>
🔬 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?
fn encode_info_for_macro_def(&mut self, macro_def: &MacroDef) -> Entry<'tcx>
[src]
fn encode_info_for_macro_def(&mut self, macro_def: &MacroDef) -> Entry<'tcx>
🔬 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?
Serialize the text of exported macros
fn encode_info_for_ty_param(
&mut self,
(def_id, Untracked): (DefId, Untracked<bool>)
) -> Entry<'tcx>
[src]
fn encode_info_for_ty_param(
&mut self,
(def_id, Untracked): (DefId, Untracked<bool>)
) -> Entry<'tcx>
🔬 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?
fn encode_info_for_closure(&mut self, def_id: DefId) -> Entry<'tcx>
[src]
fn encode_info_for_closure(&mut self, def_id: DefId) -> Entry<'tcx>
🔬 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?
fn encode_info_for_anon_const(&mut self, def_id: DefId) -> Entry<'tcx>
[src]
fn encode_info_for_anon_const(&mut self, def_id: DefId) -> Entry<'tcx>
🔬 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?
fn encode_attributes(&mut self, attrs: &[Attribute]) -> LazySeq<Attribute>
[src]
fn encode_attributes(&mut self, attrs: &[Attribute]) -> LazySeq<Attribute>
🔬 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?
fn encode_native_libraries(&mut self, _: ()) -> LazySeq<NativeLibrary>
[src]
fn encode_native_libraries(&mut self, _: ()) -> LazySeq<NativeLibrary>
🔬 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?
fn encode_foreign_modules(&mut self, _: ()) -> LazySeq<ForeignModule>
[src]
fn encode_foreign_modules(&mut self, _: ()) -> LazySeq<ForeignModule>
🔬 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?
fn encode_crate_deps(&mut self, _: ()) -> LazySeq<CrateDep>
[src]
fn encode_crate_deps(&mut self, _: ()) -> LazySeq<CrateDep>
🔬 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?
fn encode_lang_items(&mut self, _: ()) -> LazySeq<(DefIndex, usize)>
[src]
fn encode_lang_items(&mut self, _: ()) -> LazySeq<(DefIndex, usize)>
🔬 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?
fn encode_lang_items_missing(&mut self, _: ()) -> LazySeq<LangItem>
[src]
fn encode_lang_items_missing(&mut self, _: ()) -> LazySeq<LangItem>
🔬 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?
fn encode_impls(&mut self, _: ()) -> LazySeq<TraitImpls>
[src]
fn encode_impls(&mut self, _: ()) -> LazySeq<TraitImpls>
🔬 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?
Encodes an index, mapping each trait to its (local) implementations.
fn encode_exported_symbols(
&mut self,
exported_symbols: &[(ExportedSymbol, SymbolExportLevel)]
) -> EncodedExportedSymbols
[src]
fn encode_exported_symbols(
&mut self,
exported_symbols: &[(ExportedSymbol, SymbolExportLevel)]
) -> EncodedExportedSymbols
🔬 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?
fn encode_wasm_custom_sections(
&mut self,
statics: &[DefId]
) -> LazySeq<DefIndex>
[src]
fn encode_wasm_custom_sections(
&mut self,
statics: &[DefId]
) -> LazySeq<DefIndex>
🔬 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?
fn encode_dylib_dependency_formats(
&mut self,
_: ()
) -> LazySeq<Option<LinkagePreference>>
[src]
fn encode_dylib_dependency_formats(
&mut self,
_: ()
) -> LazySeq<Option<LinkagePreference>>
🔬 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?
fn encode_info_for_foreign_item(
&mut self,
(def_id, nitem): (DefId, &ForeignItem)
) -> Entry<'tcx>
[src]
fn encode_info_for_foreign_item(
&mut self,
(def_id, nitem): (DefId, &ForeignItem)
) -> Entry<'tcx>
🔬 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?
impl<'a, 'b: 'a, 'tcx: 'b> IsolatedEncoder<'a, 'b, 'tcx>
[src]
impl<'a, 'b: 'a, 'tcx: 'b> IsolatedEncoder<'a, 'b, 'tcx>
pub fn new(ecx: &'a mut EncodeContext<'b, 'tcx>) -> Self
[src]
pub fn new(ecx: &'a mut EncodeContext<'b, 'tcx>) -> Self
🔬 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 lazy<T>(&mut self, value: &T) -> Lazy<T> where
T: Encodable,
[src]
pub fn lazy<T>(&mut self, value: &T) -> Lazy<T> where
T: Encodable,
🔬 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 lazy_seq<I, T>(&mut self, iter: I) -> LazySeq<T> where
I: IntoIterator<Item = T>,
T: Encodable,
[src]
pub fn lazy_seq<I, T>(&mut self, iter: I) -> LazySeq<T> where
I: IntoIterator<Item = T>,
T: Encodable,
🔬 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 lazy_seq_ref<'x, I, T>(&mut self, iter: I) -> LazySeq<T> where
I: IntoIterator<Item = &'x T>,
T: 'x + Encodable,
[src]
pub fn lazy_seq_ref<'x, I, T>(&mut self, iter: I) -> LazySeq<T> where
I: IntoIterator<Item = &'x T>,
T: 'x + Encodable,
🔬 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 lazy_seq_from_slice<T>(&mut self, slice: &[T]) -> LazySeq<T> where
T: Encodable,
[src]
pub fn lazy_seq_from_slice<T>(&mut self, slice: &[T]) -> LazySeq<T> where
T: Encodable,
🔬 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?
Auto Trait Implementations
impl<'a, 'b, 'tcx> !Send for IsolatedEncoder<'a, 'b, 'tcx>
impl<'a, 'b, 'tcx> !Send for IsolatedEncoder<'a, 'b, 'tcx>
impl<'a, 'b, 'tcx> !Sync for IsolatedEncoder<'a, 'b, 'tcx>
impl<'a, 'b, 'tcx> !Sync for IsolatedEncoder<'a, 'b, 'tcx>