Type Alias rustc_middle::query::queries::hir_crate_items::ProvidedValue
source · pub type ProvidedValue<'tcx> = ModuleItems;Expand description
This type alias specifies the type returned from query providers and the type
used for decoding. For regular queries this is the declared returned type V,
but arena_cache will use <V as Deref>::Target instead.
Implementations§
source§impl ModuleItems
impl ModuleItems
pub fn items(&self) -> impl Iterator<Item = ItemId> + '_
pub fn trait_items(&self) -> impl Iterator<Item = TraitItemId> + '_
pub fn impl_items(&self) -> impl Iterator<Item = ImplItemId> + '_
pub fn foreign_items(&self) -> impl Iterator<Item = ForeignItemId> + '_
pub fn owners(&self) -> impl Iterator<Item = OwnerId> + '_
pub fn definitions(&self) -> impl Iterator<Item = LocalDefId> + '_
pub fn par_items(&self, f: impl Fn(ItemId) + DynSend + DynSync)
pub fn par_trait_items(&self, f: impl Fn(TraitItemId) + DynSend + DynSync)
pub fn par_impl_items(&self, f: impl Fn(ImplItemId) + DynSend + DynSync)
pub fn par_foreign_items(&self, f: impl Fn(ForeignItemId) + DynSend + DynSync)
Trait Implementations§
source§impl Debug for ModuleItems
impl Debug for ModuleItems
source§impl<__D: Decoder> Decodable<__D> for ModuleItems
impl<__D: Decoder> Decodable<__D> for ModuleItems
source§impl<__E: Encoder> Encodable<__E> for ModuleItems
impl<__E: Encoder> Encodable<__E> for ModuleItems
source§impl<'__ctx> HashStable<StableHashingContext<'__ctx>> for ModuleItems
impl<'__ctx> HashStable<StableHashingContext<'__ctx>> for ModuleItems
fn hash_stable( &self, __hcx: &mut StableHashingContext<'__ctx>, __hasher: &mut StableHasher )
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. 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