[−][src]Struct rustc_metadata::rmeta::encoder::EncodeContext
Fields
opaque: Encodertcx: TyCtxt<'tcx>feat: &'tcx Featurestables: TableBuilders<'tcx>lazy_state: LazyStatetype_shorthands: FxHashMap<Ty<'tcx>, usize>predicate_shorthands: FxHashMap<Predicate<'tcx>, usize>interpret_allocs: FxIndexSet<AllocId>source_file_cache: (Lrc<SourceFile>, usize)required_source_files: Option<GrowableBitSet<usize>>is_proc_macro: boolhygiene_ctxt: &'a HygieneEncodeContextImplementations
impl<'a, 'tcx> EncodeContext<'a, 'tcx>[src]
pub(in rmeta::encoder) fn emit_lazy_distance<T: ?Sized + LazyMeta>(
&mut self,
lazy: Lazy<T>
) -> Result<(), Self::Error>[src]
&mut self,
lazy: Lazy<T>
) -> Result<(), Self::Error>
pub(in rmeta::encoder) fn lazy<T: ?Sized + LazyMeta>(
&mut self,
value: impl EncodeContentsForLazy<'a, 'tcx, T>
) -> Lazy<T>[src]
&mut self,
value: impl EncodeContentsForLazy<'a, 'tcx, T>
) -> Lazy<T>
pub(in rmeta::encoder) fn encode_info_for_items(
&mut self
)[src]
&mut self
)
pub(in rmeta::encoder) fn encode_def_path_table(
&mut self
)[src]
&mut self
)
pub(in rmeta::encoder) fn encode_source_map(
&mut self
) -> Lazy<[SourceFile]>[src]
&mut self
) -> Lazy<[SourceFile]>
pub(in rmeta::encoder) fn encode_crate_root(
&mut self
) -> Lazy<CrateRoot<'tcx>>[src]
&mut self
) -> Lazy<CrateRoot<'tcx>>
impl<'a, 'tcx> EncodeContext<'a, 'tcx>[src]
pub(in rmeta::encoder) fn encode_variances_of(
&mut self,
def_id: DefId
)[src]
&mut self,
def_id: DefId
)
pub(in rmeta::encoder) fn encode_item_type(
&mut self,
def_id: DefId
)[src]
&mut self,
def_id: DefId
)
pub(in rmeta::encoder) fn encode_enum_variant_info(
&mut self,
def: &AdtDef,
index: VariantIdx
)[src]
&mut self,
def: &AdtDef,
index: VariantIdx
)
pub(in rmeta::encoder) fn encode_enum_variant_ctor(
&mut self,
def: &AdtDef,
index: VariantIdx
)[src]
&mut self,
def: &AdtDef,
index: VariantIdx
)
pub(in rmeta::encoder) fn encode_info_for_mod(
&mut self,
id: HirId,
md: &Mod<'_>,
attrs: &[Attribute]
)[src]
&mut self,
id: HirId,
md: &Mod<'_>,
attrs: &[Attribute]
)
pub(in rmeta::encoder) fn encode_field(
&mut self,
adt_def: &AdtDef,
variant_index: VariantIdx,
field_index: usize
)[src]
&mut self,
adt_def: &AdtDef,
variant_index: VariantIdx,
field_index: usize
)
pub(in rmeta::encoder) fn encode_struct_ctor(
&mut self,
adt_def: &AdtDef,
def_id: DefId
)[src]
&mut self,
adt_def: &AdtDef,
def_id: DefId
)
pub(in rmeta::encoder) fn encode_generics(
&mut self,
def_id: DefId
)[src]
&mut self,
def_id: DefId
)
pub(in rmeta::encoder) fn encode_explicit_predicates(
&mut self,
def_id: DefId
)[src]
&mut self,
def_id: DefId
)
pub(in rmeta::encoder) fn encode_inferred_outlives(
&mut self,
def_id: DefId
)[src]
&mut self,
def_id: DefId
)
pub(in rmeta::encoder) fn encode_super_predicates(
&mut self,
def_id: DefId
)[src]
&mut self,
def_id: DefId
)
pub(in rmeta::encoder) fn encode_explicit_item_bounds(
&mut self,
def_id: DefId
)[src]
&mut self,
def_id: DefId
)
pub(in rmeta::encoder) fn encode_info_for_trait_item(
&mut self,
def_id: DefId
)[src]
&mut self,
def_id: DefId
)
pub(in rmeta::encoder) fn metadata_output_only(
&self
) -> bool[src]
&self
) -> bool
pub(in rmeta::encoder) fn encode_info_for_impl_item(
&mut self,
def_id: DefId
)[src]
&mut self,
def_id: DefId
)
pub(in rmeta::encoder) fn encode_fn_param_names_for_body(
&mut self,
body_id: BodyId
) -> Lazy<[Ident]>[src]
&mut self,
body_id: BodyId
) -> Lazy<[Ident]>
pub(in rmeta::encoder) fn encode_fn_param_names(
&mut self,
param_names: &[Ident]
) -> Lazy<[Ident]>[src]
&mut self,
param_names: &[Ident]
) -> Lazy<[Ident]>
pub(in rmeta::encoder) fn encode_optimized_mir(
&mut self,
def_id: LocalDefId
)[src]
&mut self,
def_id: LocalDefId
)
pub(in rmeta::encoder) fn encode_promoted_mir(
&mut self,
def_id: LocalDefId
)[src]
&mut self,
def_id: LocalDefId
)
pub(in rmeta::encoder) fn encode_inherent_implementations(
&mut self,
def_id: DefId
)[src]
&mut self,
def_id: DefId
)
pub(in rmeta::encoder) fn encode_stability(
&mut self,
def_id: DefId
)[src]
&mut self,
def_id: DefId
)
pub(in rmeta::encoder) fn encode_const_stability(
&mut self,
def_id: DefId
)[src]
&mut self,
def_id: DefId
)
pub(in rmeta::encoder) fn encode_deprecation(
&mut self,
def_id: DefId
)[src]
&mut self,
def_id: DefId
)
pub(in rmeta::encoder) fn encode_rendered_const_for_body(
&mut self,
body_id: BodyId
) -> Lazy<RenderedConst>[src]
&mut self,
body_id: BodyId
) -> Lazy<RenderedConst>
pub(in rmeta::encoder) fn encode_info_for_item(
&mut self,
def_id: DefId,
item: &'tcx Item<'tcx>
)[src]
&mut self,
def_id: DefId,
item: &'tcx Item<'tcx>
)
pub(in rmeta::encoder) fn encode_info_for_macro_def(
&mut self,
macro_def: &MacroDef<'_>
)[src]
&mut self,
macro_def: &MacroDef<'_>
)
Serialize the text of exported macros
pub(in rmeta::encoder) fn encode_info_for_generic_param(
&mut self,
def_id: DefId,
kind: EntryKind,
encode_type: bool
)[src]
&mut self,
def_id: DefId,
kind: EntryKind,
encode_type: bool
)
pub(in rmeta::encoder) fn encode_info_for_closure(
&mut self,
def_id: LocalDefId
)[src]
&mut self,
def_id: LocalDefId
)
pub(in rmeta::encoder) fn encode_info_for_anon_const(
&mut self,
def_id: LocalDefId
)[src]
&mut self,
def_id: LocalDefId
)
pub(in rmeta::encoder) fn encode_native_libraries(
&mut self
) -> Lazy<[NativeLib]>[src]
&mut self
) -> Lazy<[NativeLib]>
pub(in rmeta::encoder) fn encode_foreign_modules(
&mut self
) -> Lazy<[ForeignModule]>[src]
&mut self
) -> Lazy<[ForeignModule]>
pub(in rmeta::encoder) fn encode_hygiene(
&mut self
) -> (Lazy<Table<u32, Lazy<SyntaxContextData>>>, Lazy<Table<u32, Lazy<ExpnData>>>)[src]
&mut self
) -> (Lazy<Table<u32, Lazy<SyntaxContextData>>>, Lazy<Table<u32, Lazy<ExpnData>>>)
pub(in rmeta::encoder) fn encode_proc_macros(
&mut self
) -> Option<ProcMacroData>[src]
&mut self
) -> Option<ProcMacroData>
pub(in rmeta::encoder) fn encode_crate_deps(
&mut self
) -> Lazy<[CrateDep]>[src]
&mut self
) -> Lazy<[CrateDep]>
pub(in rmeta::encoder) fn encode_lib_features(
&mut self
) -> Lazy<[(Symbol, Option<Symbol>)]>[src]
&mut self
) -> Lazy<[(Symbol, Option<Symbol>)]>
pub(in rmeta::encoder) fn encode_diagnostic_items(
&mut self
) -> Lazy<[(Symbol, DefIndex)]>[src]
&mut self
) -> Lazy<[(Symbol, DefIndex)]>
pub(in rmeta::encoder) fn encode_lang_items(
&mut self
) -> Lazy<[(DefIndex, usize)]>[src]
&mut self
) -> Lazy<[(DefIndex, usize)]>
pub(in rmeta::encoder) fn encode_lang_items_missing(
&mut self
) -> Lazy<[LangItem]>[src]
&mut self
) -> Lazy<[LangItem]>
pub(in rmeta::encoder) fn encode_impls(
&mut self
) -> Lazy<[TraitImpls]>[src]
&mut self
) -> Lazy<[TraitImpls]>
Encodes an index, mapping each trait to its (local) implementations.
pub(in rmeta::encoder) fn encode_exported_symbols(
&mut self,
exported_symbols: &[(ExportedSymbol<'tcx>, SymbolExportLevel)]
) -> Lazy<[(ExportedSymbol<'tcx>, SymbolExportLevel)]>[src]
&mut self,
exported_symbols: &[(ExportedSymbol<'tcx>, SymbolExportLevel)]
) -> Lazy<[(ExportedSymbol<'tcx>, SymbolExportLevel)]>
pub(in rmeta::encoder) fn encode_dylib_dependency_formats(
&mut self
) -> Lazy<[Option<LinkagePreference>]>[src]
&mut self
) -> Lazy<[Option<LinkagePreference>]>
pub(in rmeta::encoder) fn encode_info_for_foreign_item(
&mut self,
def_id: DefId,
nitem: &ForeignItem<'_>
)[src]
&mut self,
def_id: DefId,
nitem: &ForeignItem<'_>
)
impl<'a, 'tcx> EncodeContext<'a, 'tcx>[src]
pub(in rmeta::encoder) fn encode_fields(
&mut self,
adt_def: &AdtDef
)[src]
&mut self,
adt_def: &AdtDef
)
pub(in rmeta::encoder) fn encode_info_for_generics(
&mut self,
generics: &Generics<'tcx>
)[src]
&mut self,
generics: &Generics<'tcx>
)
pub(in rmeta::encoder) fn encode_info_for_expr(
&mut self,
expr: &Expr<'_>
)[src]
&mut self,
expr: &Expr<'_>
)
pub(in rmeta::encoder) fn encode_ident_span(
&mut self,
def_id: DefId,
ident: Ident
)[src]
&mut self,
def_id: DefId,
ident: Ident
)
pub(in rmeta::encoder) fn encode_addl_info_for_item(
&mut self,
item: &Item<'_>
)[src]
&mut self,
item: &Item<'_>
)
In some cases, along with the item itself, we also encode some sub-items. Usually we want some info from the item so it's easier to do that here then to wait until we would encounter normally in the visitor walk.
Trait Implementations
impl<'tcx, '__a> Encodable<EncodeContext<'__a, 'tcx>> for ProcMacroData[src]
pub fn encode(
&self,
__encoder: &mut EncodeContext<'__a, 'tcx>
) -> Result<(), <EncodeContext<'__a, 'tcx> as Encoder>::Error>[src]
&self,
__encoder: &mut EncodeContext<'__a, 'tcx>
) -> Result<(), <EncodeContext<'__a, 'tcx> as Encoder>::Error>
impl<'tcx, '__a> Encodable<EncodeContext<'__a, 'tcx>> for CrateRoot<'tcx>[src]
pub fn encode(
&self,
__encoder: &mut EncodeContext<'__a, 'tcx>
) -> Result<(), <EncodeContext<'__a, 'tcx> as Encoder>::Error>[src]
&self,
__encoder: &mut EncodeContext<'__a, 'tcx>
) -> Result<(), <EncodeContext<'__a, 'tcx> as Encoder>::Error>
impl<'tcx, '__a> Encodable<EncodeContext<'__a, 'tcx>> for TraitImpls[src]
pub fn encode(
&self,
__encoder: &mut EncodeContext<'__a, 'tcx>
) -> Result<(), <EncodeContext<'__a, 'tcx> as Encoder>::Error>[src]
&self,
__encoder: &mut EncodeContext<'__a, 'tcx>
) -> Result<(), <EncodeContext<'__a, 'tcx> as Encoder>::Error>
impl<'tcx, '__a> Encodable<EncodeContext<'__a, 'tcx>> for LazyTables<'tcx>[src]
pub fn encode(
&self,
__encoder: &mut EncodeContext<'__a, 'tcx>
) -> Result<(), <EncodeContext<'__a, 'tcx> as Encoder>::Error>[src]
&self,
__encoder: &mut EncodeContext<'__a, 'tcx>
) -> Result<(), <EncodeContext<'__a, 'tcx> as Encoder>::Error>
impl<'tcx, '__a> Encodable<EncodeContext<'__a, 'tcx>> for EntryKind[src]
pub fn encode(
&self,
__encoder: &mut EncodeContext<'__a, 'tcx>
) -> Result<(), <EncodeContext<'__a, 'tcx> as Encoder>::Error>[src]
&self,
__encoder: &mut EncodeContext<'__a, 'tcx>
) -> Result<(), <EncodeContext<'__a, 'tcx> as Encoder>::Error>
impl<'tcx, '__a> Encodable<EncodeContext<'__a, 'tcx>> for ModData[src]
pub fn encode(
&self,
__encoder: &mut EncodeContext<'__a, 'tcx>
) -> Result<(), <EncodeContext<'__a, 'tcx> as Encoder>::Error>[src]
&self,
__encoder: &mut EncodeContext<'__a, 'tcx>
) -> Result<(), <EncodeContext<'__a, 'tcx> as Encoder>::Error>
impl<'tcx, '__a> Encodable<EncodeContext<'__a, 'tcx>> for FnData[src]
pub fn encode(
&self,
__encoder: &mut EncodeContext<'__a, 'tcx>
) -> Result<(), <EncodeContext<'__a, 'tcx> as Encoder>::Error>[src]
&self,
__encoder: &mut EncodeContext<'__a, 'tcx>
) -> Result<(), <EncodeContext<'__a, 'tcx> as Encoder>::Error>
impl<'tcx, '__a> Encodable<EncodeContext<'__a, 'tcx>> for AssocFnData[src]
pub fn encode(
&self,
__encoder: &mut EncodeContext<'__a, 'tcx>
) -> Result<(), <EncodeContext<'__a, 'tcx> as Encoder>::Error>[src]
&self,
__encoder: &mut EncodeContext<'__a, 'tcx>
) -> Result<(), <EncodeContext<'__a, 'tcx> as Encoder>::Error>
impl<'a, 'tcx, T: Encodable<EncodeContext<'a, 'tcx>>> Encodable<EncodeContext<'a, 'tcx>> for Lazy<T>[src]
pub fn encode(&self, e: &mut EncodeContext<'a, 'tcx>) -> EncodeResult[src]
impl<'a, 'tcx, T: Encodable<EncodeContext<'a, 'tcx>>> Encodable<EncodeContext<'a, 'tcx>> for Lazy<[T]>[src]
pub fn encode(&self, e: &mut EncodeContext<'a, 'tcx>) -> EncodeResult[src]
impl<'a, 'tcx, I: Idx, T: Encodable<EncodeContext<'a, 'tcx>>> Encodable<EncodeContext<'a, 'tcx>> for Lazy<Table<I, T>> where
Option<T>: FixedSizeEncoding, [src]
Option<T>: FixedSizeEncoding,
pub fn encode(&self, e: &mut EncodeContext<'a, 'tcx>) -> EncodeResult[src]
impl<'a, 'tcx> Encodable<EncodeContext<'a, 'tcx>> for CrateNum[src]
pub fn encode(&self, s: &mut EncodeContext<'a, 'tcx>) -> EncodeResult[src]
impl<'a, 'tcx> Encodable<EncodeContext<'a, 'tcx>> for DefIndex[src]
pub fn encode(&self, s: &mut EncodeContext<'a, 'tcx>) -> EncodeResult[src]
impl<'a, 'tcx> Encodable<EncodeContext<'a, 'tcx>> for SyntaxContext[src]
pub fn encode(&self, s: &mut EncodeContext<'a, 'tcx>) -> EncodeResult[src]
impl<'a, 'tcx> Encodable<EncodeContext<'a, 'tcx>> for ExpnId[src]
pub fn encode(&self, s: &mut EncodeContext<'a, 'tcx>) -> EncodeResult[src]
impl<'a, 'tcx> Encodable<EncodeContext<'a, 'tcx>> for Span[src]
pub fn encode(&self, s: &mut EncodeContext<'a, 'tcx>) -> EncodeResult[src]
impl<'a, 'tcx> Encodable<EncodeContext<'a, 'tcx>> for &'tcx [Node<'tcx>][src]
pub fn encode(&self, s: &mut EncodeContext<'a, 'tcx>) -> EncodeResult[src]
impl<'a, 'tcx> Encodable<EncodeContext<'a, 'tcx>> for &'tcx [(Predicate<'tcx>, Span)][src]
pub fn encode(&self, s: &mut EncodeContext<'a, 'tcx>) -> EncodeResult[src]
impl<'a, 'tcx> Encoder for EncodeContext<'a, 'tcx>[src]
type Error = <Encoder as Encoder>::Error
pub fn emit_unit(&mut self) -> Result<(), Self::Error>[src]
pub fn emit_usize(&mut self, value: usize) -> Result<(), Self::Error>[src]
pub fn emit_u128(&mut self, value: u128) -> Result<(), Self::Error>[src]
pub fn emit_u64(&mut self, value: u64) -> Result<(), Self::Error>[src]
pub fn emit_u32(&mut self, value: u32) -> Result<(), Self::Error>[src]
pub fn emit_u16(&mut self, value: u16) -> Result<(), Self::Error>[src]
pub fn emit_u8(&mut self, value: u8) -> Result<(), Self::Error>[src]
pub fn emit_isize(&mut self, value: isize) -> Result<(), Self::Error>[src]
pub fn emit_i128(&mut self, value: i128) -> Result<(), Self::Error>[src]
pub fn emit_i64(&mut self, value: i64) -> Result<(), Self::Error>[src]
pub fn emit_i32(&mut self, value: i32) -> Result<(), Self::Error>[src]
pub fn emit_i16(&mut self, value: i16) -> Result<(), Self::Error>[src]
pub fn emit_i8(&mut self, value: i8) -> Result<(), Self::Error>[src]
pub fn emit_bool(&mut self, value: bool) -> Result<(), Self::Error>[src]
pub fn emit_f64(&mut self, value: f64) -> Result<(), Self::Error>[src]
pub fn emit_f32(&mut self, value: f32) -> Result<(), Self::Error>[src]
pub fn emit_char(&mut self, value: char) -> Result<(), Self::Error>[src]
pub fn emit_str(&mut self, value: &str) -> Result<(), Self::Error>[src]
pub fn emit_enum<F>(&mut self, _name: &str, f: F) -> Result<(), Self::Error> where
F: FnOnce(&mut Self) -> Result<(), Self::Error>, [src]
F: FnOnce(&mut Self) -> Result<(), Self::Error>,
pub fn emit_enum_variant<F>(
&mut self,
_v_name: &str,
v_id: usize,
_len: usize,
f: F
) -> Result<(), Self::Error> where
F: FnOnce(&mut Self) -> Result<(), Self::Error>, [src]
&mut self,
_v_name: &str,
v_id: usize,
_len: usize,
f: F
) -> Result<(), Self::Error> where
F: FnOnce(&mut Self) -> Result<(), Self::Error>,
pub fn emit_enum_variant_arg<F>(
&mut self,
_a_idx: usize,
f: F
) -> Result<(), Self::Error> where
F: FnOnce(&mut Self) -> Result<(), Self::Error>, [src]
&mut self,
_a_idx: usize,
f: F
) -> Result<(), Self::Error> where
F: FnOnce(&mut Self) -> Result<(), Self::Error>,
pub fn emit_enum_struct_variant<F>(
&mut self,
v_name: &str,
v_id: usize,
len: usize,
f: F
) -> Result<(), Self::Error> where
F: FnOnce(&mut Self) -> Result<(), Self::Error>, [src]
&mut self,
v_name: &str,
v_id: usize,
len: usize,
f: F
) -> Result<(), Self::Error> where
F: FnOnce(&mut Self) -> Result<(), Self::Error>,
pub fn emit_enum_struct_variant_field<F>(
&mut self,
_f_name: &str,
f_idx: usize,
f: F
) -> Result<(), Self::Error> where
F: FnOnce(&mut Self) -> Result<(), Self::Error>, [src]
&mut self,
_f_name: &str,
f_idx: usize,
f: F
) -> Result<(), Self::Error> where
F: FnOnce(&mut Self) -> Result<(), Self::Error>,
pub fn emit_struct<F>(
&mut self,
_name: &str,
_len: usize,
f: F
) -> Result<(), Self::Error> where
F: FnOnce(&mut Self) -> Result<(), Self::Error>, [src]
&mut self,
_name: &str,
_len: usize,
f: F
) -> Result<(), Self::Error> where
F: FnOnce(&mut Self) -> Result<(), Self::Error>,
pub fn emit_struct_field<F>(
&mut self,
_f_name: &str,
_f_idx: usize,
f: F
) -> Result<(), Self::Error> where
F: FnOnce(&mut Self) -> Result<(), Self::Error>, [src]
&mut self,
_f_name: &str,
_f_idx: usize,
f: F
) -> Result<(), Self::Error> where
F: FnOnce(&mut Self) -> Result<(), Self::Error>,
pub fn emit_tuple<F>(&mut self, _len: usize, f: F) -> Result<(), Self::Error> where
F: FnOnce(&mut Self) -> Result<(), Self::Error>, [src]
F: FnOnce(&mut Self) -> Result<(), Self::Error>,
pub fn emit_tuple_arg<F>(
&mut self,
_idx: usize,
f: F
) -> Result<(), Self::Error> where
F: FnOnce(&mut Self) -> Result<(), Self::Error>, [src]
&mut self,
_idx: usize,
f: F
) -> Result<(), Self::Error> where
F: FnOnce(&mut Self) -> Result<(), Self::Error>,
pub fn emit_tuple_struct<F>(
&mut self,
_name: &str,
len: usize,
f: F
) -> Result<(), Self::Error> where
F: FnOnce(&mut Self) -> Result<(), Self::Error>, [src]
&mut self,
_name: &str,
len: usize,
f: F
) -> Result<(), Self::Error> where
F: FnOnce(&mut Self) -> Result<(), Self::Error>,
pub fn emit_tuple_struct_arg<F>(
&mut self,
f_idx: usize,
f: F
) -> Result<(), Self::Error> where
F: FnOnce(&mut Self) -> Result<(), Self::Error>, [src]
&mut self,
f_idx: usize,
f: F
) -> Result<(), Self::Error> where
F: FnOnce(&mut Self) -> Result<(), Self::Error>,
pub fn emit_option<F>(&mut self, f: F) -> Result<(), Self::Error> where
F: FnOnce(&mut Self) -> Result<(), Self::Error>, [src]
F: FnOnce(&mut Self) -> Result<(), Self::Error>,
pub fn emit_option_none(&mut self) -> Result<(), Self::Error>[src]
pub fn emit_option_some<F>(&mut self, f: F) -> Result<(), Self::Error> where
F: FnOnce(&mut Self) -> Result<(), Self::Error>, [src]
F: FnOnce(&mut Self) -> Result<(), Self::Error>,
pub fn emit_seq<F>(&mut self, len: usize, f: F) -> Result<(), Self::Error> where
F: FnOnce(&mut Self) -> Result<(), Self::Error>, [src]
F: FnOnce(&mut Self) -> Result<(), Self::Error>,
pub fn emit_seq_elt<F>(&mut self, _idx: usize, f: F) -> Result<(), Self::Error> where
F: FnOnce(&mut Self) -> Result<(), Self::Error>, [src]
F: FnOnce(&mut Self) -> Result<(), Self::Error>,
pub fn emit_map<F>(&mut self, len: usize, f: F) -> Result<(), Self::Error> where
F: FnOnce(&mut Self) -> Result<(), Self::Error>, [src]
F: FnOnce(&mut Self) -> Result<(), Self::Error>,
pub fn emit_map_elt_key<F>(
&mut self,
_idx: usize,
f: F
) -> Result<(), Self::Error> where
F: FnOnce(&mut Self) -> Result<(), Self::Error>, [src]
&mut self,
_idx: usize,
f: F
) -> Result<(), Self::Error> where
F: FnOnce(&mut Self) -> Result<(), Self::Error>,
pub fn emit_map_elt_val<F>(
&mut self,
_idx: usize,
f: F
) -> Result<(), Self::Error> where
F: FnOnce(&mut Self) -> Result<(), Self::Error>, [src]
&mut self,
_idx: usize,
f: F
) -> Result<(), Self::Error> where
F: FnOnce(&mut Self) -> Result<(), Self::Error>,
impl<'a, 'tcx> FingerprintEncoder for EncodeContext<'a, 'tcx>[src]
pub fn encode_fingerprint(&mut self, f: &Fingerprint) -> Result<(), Self::Error>[src]
impl<'a, 'tcx> TyEncoder<'tcx> for EncodeContext<'a, 'tcx>[src]
pub const CLEAR_CROSS_CRATE: bool[src]
pub fn position(&self) -> usize[src]
pub fn tcx(&self) -> TyCtxt<'tcx>[src]
pub fn type_shorthands(&mut self) -> &mut FxHashMap<Ty<'tcx>, usize>[src]
pub fn predicate_shorthands(&mut self) -> &mut FxHashMap<Predicate<'tcx>, usize>[src]
pub fn encode_alloc_id(&mut self, alloc_id: &AllocId) -> Result<(), Self::Error>[src]
impl<'tcx, 'a> Visitor<'tcx> for EncodeContext<'a, 'tcx>[src]
type Map = Map<'tcx>
pub fn nested_visit_map(&mut self) -> NestedVisitorMap<Self::Map>[src]
pub fn visit_expr(&mut self, ex: &'tcx Expr<'tcx>)[src]
pub fn visit_anon_const(&mut self, c: &'tcx AnonConst)[src]
pub fn visit_item(&mut self, item: &'tcx Item<'tcx>)[src]
pub fn visit_foreign_item(&mut self, ni: &'tcx ForeignItem<'tcx>)[src]
pub fn visit_generics(&mut self, generics: &'tcx Generics<'tcx>)[src]
pub fn visit_macro_def(&mut self, macro_def: &'tcx MacroDef<'tcx>)[src]
pub fn visit_nested_item(&mut self, id: ItemId)[src]
pub fn visit_nested_trait_item(&mut self, id: TraitItemId)[src]
pub fn visit_nested_impl_item(&mut self, id: ImplItemId)[src]
pub fn visit_nested_body(&mut self, id: BodyId)[src]
pub fn visit_param(&mut self, param: &'v Param<'v>)[src]
pub fn visit_body(&mut self, b: &'v Body<'v>)[src]
pub fn as_deep_visitor(&mut self) -> DeepVisitor<'_, Self>[src]
pub fn visit_id(&mut self, _hir_id: HirId)[src]
pub fn visit_name(&mut self, _span: Span, _name: Symbol)[src]
pub fn visit_ident(&mut self, ident: Ident)[src]
pub fn visit_mod(&mut self, m: &'v Mod<'v>, _s: Span, n: HirId)[src]
pub fn visit_local(&mut self, l: &'v Local<'v>)[src]
pub fn visit_block(&mut self, b: &'v Block<'v>)[src]
pub fn visit_stmt(&mut self, s: &'v Stmt<'v>)[src]
pub fn visit_arm(&mut self, a: &'v Arm<'v>)[src]
pub fn visit_pat(&mut self, p: &'v Pat<'v>)[src]
pub fn visit_ty(&mut self, t: &'v Ty<'v>)[src]
pub fn visit_generic_param(&mut self, p: &'v GenericParam<'v>)[src]
pub fn visit_where_predicate(&mut self, predicate: &'v WherePredicate<'v>)[src]
pub fn visit_fn_decl(&mut self, fd: &'v FnDecl<'v>)[src]
pub fn visit_fn(
&mut self,
fk: FnKind<'v>,
fd: &'v FnDecl<'v>,
b: BodyId,
s: Span,
id: HirId
)[src]
&mut self,
fk: FnKind<'v>,
fd: &'v FnDecl<'v>,
b: BodyId,
s: Span,
id: HirId
)
pub fn visit_use(&mut self, path: &'v Path<'v>, hir_id: HirId)[src]
pub fn visit_trait_item(&mut self, ti: &'v TraitItem<'v>)[src]
pub fn visit_trait_item_ref(&mut self, ii: &'v TraitItemRef)[src]
pub fn visit_impl_item(&mut self, ii: &'v ImplItem<'v>)[src]
pub fn visit_impl_item_ref(&mut self, ii: &'v ImplItemRef<'v>)[src]
pub fn visit_trait_ref(&mut self, t: &'v TraitRef<'v>)[src]
pub fn visit_param_bound(&mut self, bounds: &'v GenericBound<'v>)[src]
pub fn visit_poly_trait_ref(
&mut self,
t: &'v PolyTraitRef<'v>,
m: TraitBoundModifier
)[src]
&mut self,
t: &'v PolyTraitRef<'v>,
m: TraitBoundModifier
)
pub fn visit_variant_data(
&mut self,
s: &'v VariantData<'v>,
Symbol,
&'v Generics<'v>,
_parent_id: HirId,
Span
)[src]
&mut self,
s: &'v VariantData<'v>,
Symbol,
&'v Generics<'v>,
_parent_id: HirId,
Span
)
pub fn visit_struct_field(&mut self, s: &'v StructField<'v>)[src]
pub fn visit_enum_def(
&mut self,
enum_definition: &'v EnumDef<'v>,
generics: &'v Generics<'v>,
item_id: HirId,
Span
)[src]
&mut self,
enum_definition: &'v EnumDef<'v>,
generics: &'v Generics<'v>,
item_id: HirId,
Span
)
pub fn visit_variant(
&mut self,
v: &'v Variant<'v>,
g: &'v Generics<'v>,
item_id: HirId
)[src]
&mut self,
v: &'v Variant<'v>,
g: &'v Generics<'v>,
item_id: HirId
)
pub fn visit_label(&mut self, label: &'v Label)[src]
pub fn visit_generic_arg(&mut self, generic_arg: &'v GenericArg<'v>)[src]
pub fn visit_lifetime(&mut self, lifetime: &'v Lifetime)[src]
pub fn visit_qpath(&mut self, qpath: &'v QPath<'v>, id: HirId, span: Span)[src]
pub fn visit_path(&mut self, path: &'v Path<'v>, _id: HirId)[src]
pub fn visit_path_segment(
&mut self,
path_span: Span,
path_segment: &'v PathSegment<'v>
)[src]
&mut self,
path_span: Span,
path_segment: &'v PathSegment<'v>
)
pub fn visit_generic_args(
&mut self,
path_span: Span,
generic_args: &'v GenericArgs<'v>
)[src]
&mut self,
path_span: Span,
generic_args: &'v GenericArgs<'v>
)
pub fn visit_assoc_type_binding(&mut self, type_binding: &'v TypeBinding<'v>)[src]
pub fn visit_attribute(&mut self, _attr: &'v Attribute)[src]
pub fn visit_vis(&mut self, vis: &'v Spanned<VisibilityKind<'v>>)[src]
pub fn visit_associated_item_kind(&mut self, kind: &'v AssocItemKind)[src]
pub fn visit_defaultness(&mut self, defaultness: &'v Defaultness)[src]
Auto Trait Implementations
impl<'a, 'tcx> !RefUnwindSafe for EncodeContext<'a, 'tcx>
impl<'a, 'tcx> !Send for EncodeContext<'a, 'tcx>
impl<'a, 'tcx> !Sync for EncodeContext<'a, 'tcx>
impl<'a, 'tcx> Unpin for EncodeContext<'a, 'tcx>
impl<'a, 'tcx> !UnwindSafe for EncodeContext<'a, 'tcx>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<'a, T> Captures<'a> for T where
T: ?Sized, [src]
T: ?Sized,
impl<E> FingerprintEncoder for E where
E: Encoder, [src]
E: Encoder,
pub default fn encode_fingerprint(
&mut self,
&Fingerprint
) -> Result<(), <E as Encoder>::Error>[src]
&mut self,
&Fingerprint
) -> Result<(), <E as Encoder>::Error>
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,