Struct rustc_metadata::rmeta::decoder::DecodeContext [−][src]
pub(super) struct DecodeContext<'a, 'tcx> {
opaque: Decoder<'a>,
cdata: Option<CrateMetadataRef<'a>>,
sess: Option<&'tcx Session>,
tcx: Option<TyCtxt<'tcx>>,
last_source_file_index: usize,
lazy_state: LazyState,
alloc_decoding_session: Option<AllocDecodingSession<'a>>,
}Fields
opaque: Decoder<'a>cdata: Option<CrateMetadataRef<'a>>sess: Option<&'tcx Session>tcx: Option<TyCtxt<'tcx>>last_source_file_index: usizelazy_state: LazyStatealloc_decoding_session: Option<AllocDecodingSession<'a>>Implementations
Trait Implementations
impl<'a, 'tcx, T: Decodable<DecodeContext<'a, 'tcx>>> Decodable<DecodeContext<'a, 'tcx>> for Lazy<T>
impl<'a, 'tcx, T: Decodable<DecodeContext<'a, 'tcx>>> Decodable<DecodeContext<'a, 'tcx>> for Lazy<T>impl<'a, 'tcx, T: Decodable<DecodeContext<'a, 'tcx>>> Decodable<DecodeContext<'a, 'tcx>> for Lazy<[T]>
impl<'a, 'tcx, T: Decodable<DecodeContext<'a, 'tcx>>> Decodable<DecodeContext<'a, 'tcx>> for Lazy<[T]>impl<'a, 'tcx, I: Idx, T: Decodable<DecodeContext<'a, 'tcx>>> Decodable<DecodeContext<'a, 'tcx>> for Lazy<Table<I, T>> where
Option<T>: FixedSizeEncoding,
impl<'a, 'tcx, I: Idx, T: Decodable<DecodeContext<'a, 'tcx>>> Decodable<DecodeContext<'a, 'tcx>> for Lazy<Table<I, T>> where
Option<T>: FixedSizeEncoding, fn read_enum<T, F>(&mut self, f: F) -> Result<T, Self::Error> where
F: FnOnce(&mut Self) -> Result<T, Self::Error>, fn read_enum_variant<T, F>(
&mut self,
_names: &[&str],
f: F
) -> Result<T, Self::Error> where
F: FnMut(&mut Self, usize) -> Result<T, Self::Error>, fn read_enum_variant_arg<T, F>(&mut self, f: F) -> Result<T, Self::Error> where
F: FnOnce(&mut Self) -> Result<T, Self::Error>, fn read_struct<T, F>(&mut self, f: F) -> Result<T, Self::Error> where
F: FnOnce(&mut Self) -> Result<T, Self::Error>, fn read_struct_field<T, F>(
&mut self,
_f_name: &str,
f: F
) -> Result<T, Self::Error> where
F: FnOnce(&mut Self) -> Result<T, Self::Error>, fn read_tuple<T, F>(&mut self, _len: usize, f: F) -> Result<T, Self::Error> where
F: FnOnce(&mut Self) -> Result<T, Self::Error>, fn read_tuple_arg<T, F>(&mut self, f: F) -> Result<T, Self::Error> where
F: FnOnce(&mut Self) -> Result<T, Self::Error>, fn read_option<T, F>(&mut self, f: F) -> Result<T, Self::Error> where
F: FnMut(&mut Self, bool) -> Result<T, Self::Error>, fn read_seq<T, F>(&mut self, f: F) -> Result<T, Self::Error> where
F: FnOnce(&mut Self, usize) -> Result<T, Self::Error>, fn read_seq_elt<T, F>(&mut self, f: F) -> Result<T, Self::Error> where
F: FnOnce(&mut Self) -> Result<T, Self::Error>, fn read_map<T, F>(&mut self, f: F) -> Result<T, Self::Error> where
F: FnOnce(&mut Self, usize) -> Result<T, Self::Error>, Auto Trait Implementations
impl<'a, 'tcx> !RefUnwindSafe for DecodeContext<'a, 'tcx>impl<'a, 'tcx> !Send for DecodeContext<'a, 'tcx>impl<'a, 'tcx> !Sync for DecodeContext<'a, 'tcx>impl<'a, 'tcx> Unpin for DecodeContext<'a, 'tcx>impl<'a, 'tcx> !UnwindSafe for DecodeContext<'a, 'tcx>Blanket Implementations
Layout
Note: Most layout information is completely unstable and may be different between compiler versions and platforms. The only exception is types with certain repr(...) attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 96 bytes