ProcessQueryValue in rustc_metadata::rmeta::decoder::cstore_impl - Rust
Description: API documentation for the Rust `ProcessQueryValue` trait in crate `rustc_metadata`.

Skip to main content

## ProcessQueryValue

# 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".

## 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<'tcx, D: Decoder, T: Copy + Decodable<D>> ProcessQueryValue<'tcx, &'tcx [T]> for Option<DecodeIterator<T, D>>

Source§

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

Source§

### impl<'tcx, D: Decoder, T: Copy + Decodable<D>> ProcessQueryValue<'tcx, Option<&'tcx [T]>> for Option<DecodeIterator<T, D>>

Source§

#### fn process_decoded( self, tcx: TyCtxt<'tcx>, _err: impl Fn() -> !, ) -> Option<&'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