[−][src]Struct rustc_metadata::rmeta::decoder::DecodeContext

pub(in rmeta) 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

impl<'a, 'tcx> DecodeContext<'a, 'tcx>[src]

pub(in rmeta::decoder) fn tcx(
    &self
) -> TyCtxt<'tcx>
[src]

pub(in rmeta::decoder) fn cdata(
    &self
) -> CrateMetadataRef<'a>
[src]

pub(in rmeta::decoder) fn read_lazy_with_meta<T: ?Sized + LazyMeta>(
    &mut self,
    meta: T::Meta
) -> Result<Lazy<T>, Self::Error>
[src]

Trait Implementations

impl<'tcx, '__a> Decodable<DecodeContext<'__a, 'tcx>> for ProcMacroData[src]

impl<'tcx, '__a> Decodable<DecodeContext<'__a, 'tcx>> for CrateRoot<'tcx>[src]

impl<'tcx, '__a> Decodable<DecodeContext<'__a, 'tcx>> for TraitImpls[src]

impl<'tcx, '__a> Decodable<DecodeContext<'__a, 'tcx>> for LazyTables<'tcx>[src]

impl<'tcx, '__a> Decodable<DecodeContext<'__a, 'tcx>> for EntryKind[src]

impl<'tcx, '__a> Decodable<DecodeContext<'__a, 'tcx>> for ModData[src]

impl<'tcx, '__a> Decodable<DecodeContext<'__a, 'tcx>> for FnData[src]

impl<'tcx, '__a> Decodable<DecodeContext<'__a, 'tcx>> for AssocFnData[src]

impl<'a, 'tcx> Decodable<DecodeContext<'a, 'tcx>> for CrateNum[src]

impl<'a, 'tcx> Decodable<DecodeContext<'a, 'tcx>> for DefIndex[src]

impl<'a, 'tcx> Decodable<DecodeContext<'a, 'tcx>> for SyntaxContext[src]

impl<'a, 'tcx> Decodable<DecodeContext<'a, 'tcx>> for ExpnId[src]

impl<'a, 'tcx> Decodable<DecodeContext<'a, 'tcx>> for Span[src]

impl<'a, 'tcx> Decodable<DecodeContext<'a, 'tcx>> for &'tcx [Node<'tcx>][src]

impl<'a, 'tcx> Decodable<DecodeContext<'a, 'tcx>> for &'tcx [(Predicate<'tcx>, Span)][src]

impl<'a, 'tcx, T: Decodable<DecodeContext<'a, 'tcx>>> Decodable<DecodeContext<'a, 'tcx>> for Lazy<T>[src]

impl<'a, 'tcx, T: Decodable<DecodeContext<'a, 'tcx>>> Decodable<DecodeContext<'a, 'tcx>> for Lazy<[T]>[src]

impl<'a, 'tcx, I: Idx, T: Decodable<DecodeContext<'a, 'tcx>>> Decodable<DecodeContext<'a, 'tcx>> for Lazy<Table<I, T>> where
    Option<T>: FixedSizeEncoding, 
[src]

impl<'a, 'tcx> Decoder for DecodeContext<'a, 'tcx>[src]

type Error = String

impl<'a, 'tcx> FingerprintDecoder for DecodeContext<'a, 'tcx>[src]

impl<'a, 'tcx> TyDecoder<'tcx> for DecodeContext<'a, 'tcx>[src]

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

impl<T> Any for T where
    T: 'static + ?Sized, 
[src]

impl<T> Borrow<T> for T where
    T: ?Sized, 
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized, 
[src]

impl<'a, T> Captures<'a> for T where
    T: ?Sized, 
[src]

impl<D> FingerprintDecoder for D where
    D: Decoder, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.