rustc_metadata::rmeta::decoder::cstore_impl

Trait ProcessQueryValue

Source
trait ProcessQueryValue<'tcx, T> {
    // Required method
    fn process_decoded(self, _tcx: TyCtxt<'tcx>, _err: impl Fn() -> !) -> T;
}

Required Methods§

Source

fn process_decoded(self, _tcx: TyCtxt<'tcx>, _err: impl Fn() -> !) -> T

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl ProcessQueryValue<'_, Option<DeprecationEntry>> for Option<Deprecation>

Source§

fn process_decoded( self, _tcx: TyCtxt<'_>, _err: impl Fn() -> !, ) -> Option<DeprecationEntry>

Source§

impl<'a, 'tcx, T: Copy + Decodable<DecodeContext<'a, 'tcx>>> ProcessQueryValue<'tcx, &'tcx [T]> for Option<DecodeIterator<'a, 'tcx, T>>

Source§

fn process_decoded(self, tcx: TyCtxt<'tcx>, err: impl Fn() -> !) -> &'tcx [T]

Source§

impl<'a, 'tcx, T: Copy + Decodable<DecodeContext<'a, 'tcx>>> ProcessQueryValue<'tcx, Option<&'tcx [T]>> for Option<DecodeIterator<'a, 'tcx, T>>

Source§

fn process_decoded( self, tcx: TyCtxt<'tcx>, _err: impl Fn() -> !, ) -> Option<&'tcx [T]>

Source§

impl<'a, 'tcx, T: Copy + Decodable<DecodeContext<'a, 'tcx>>> ProcessQueryValue<'tcx, EarlyBinder<TyCtxt<'tcx>, &'tcx [T]>> for Option<DecodeIterator<'a, 'tcx, T>>

Source§

fn process_decoded( self, tcx: TyCtxt<'tcx>, err: impl Fn() -> !, ) -> EarlyBinder<'tcx, &'tcx [T]>

Source§

impl<'tcx, T: ArenaAllocatable<'tcx>> ProcessQueryValue<'tcx, &'tcx T> for Option<T>

Source§

fn process_decoded(self, tcx: TyCtxt<'tcx>, err: impl Fn() -> !) -> &'tcx T

Source§

impl<T> ProcessQueryValue<'_, T> for Option<T>

Source§

fn process_decoded(self, _tcx: TyCtxt<'_>, err: impl Fn() -> !) -> T

Source§

impl<T, E> ProcessQueryValue<'_, Result<Option<T>, E>> for Option<T>

Source§

fn process_decoded( self, _tcx: TyCtxt<'_>, _err: impl Fn() -> !, ) -> Result<Option<T>, E>

Implementors§

Source§

impl<'tcx, T> ProcessQueryValue<'tcx, EarlyBinder<TyCtxt<'tcx>, T>> for T

Source§

impl<T> ProcessQueryValue<'_, T> for T