Type Alias rustc_middle::query::queries::associated_item::Value
source · pub type Value<'tcx> = AssocItem;Aliased Type§
struct Value<'tcx> {
pub def_id: DefId,
pub name: Symbol,
pub kind: AssocKind,
pub container: AssocItemContainer,
pub trait_item_def_id: Option<DefId>,
pub fn_has_self_parameter: bool,
pub opt_rpitit_info: Option<ImplTraitInTraitData>,
}Fields§
§def_id: DefId§name: Symbol§kind: AssocKind§container: AssocItemContainer§trait_item_def_id: Option<DefId>If this is an item in an impl of a trait then this is the DefId of
the associated item on the trait that this implements.
fn_has_self_parameter: boolWhether this is a method with an explicit self as its first parameter, allowing method calls.
opt_rpitit_info: Option<ImplTraitInTraitData>Some if the associated item (an associated type) comes from the
return-position impl Trait in trait desugaring. The ImplTraitInTraitData
provides additional information about its source.
Implementations§
source§impl AssocItem
impl AssocItem
pub fn ident(&self, tcx: TyCtxt<'_>) -> Ident
sourcepub fn defaultness(&self, tcx: TyCtxt<'_>) -> Defaultness
pub fn defaultness(&self, tcx: TyCtxt<'_>) -> Defaultness
pub fn visibility(&self, tcx: TyCtxt<'_>) -> Visibility<DefId>
pub fn container_id(&self, tcx: TyCtxt<'_>) -> DefId
pub fn trait_container(&self, tcx: TyCtxt<'_>) -> Option<DefId>
pub fn impl_container(&self, tcx: TyCtxt<'_>) -> Option<DefId>
pub fn signature(&self, tcx: TyCtxt<'_>) -> String
pub fn is_impl_trait_in_trait(&self) -> bool
Trait Implementations§
source§impl<'__ctx> HashStable<StableHashingContext<'__ctx>> for AssocItem
impl<'__ctx> HashStable<StableHashingContext<'__ctx>> for AssocItem
fn hash_stable( &self, __hcx: &mut StableHashingContext<'__ctx>, __hasher: &mut StableHasher )
source§impl PartialEq<AssocItem> for AssocItem
impl PartialEq<AssocItem> for AssocItem
source§impl<'tcx> TypeFoldable<TyCtxt<'tcx>> for AssocItem
impl<'tcx> TypeFoldable<TyCtxt<'tcx>> for AssocItem
source§fn try_fold_with<F: FallibleTypeFolder<TyCtxt<'tcx>>>(
self,
_: &mut F
) -> Result<Self, F::Error>
fn try_fold_with<F: FallibleTypeFolder<TyCtxt<'tcx>>>( self, _: &mut F ) -> Result<Self, F::Error>
source§impl<'tcx> TypeVisitable<TyCtxt<'tcx>> for AssocItem
impl<'tcx> TypeVisitable<TyCtxt<'tcx>> for AssocItem
source§fn visit_with<F: TypeVisitor<TyCtxt<'tcx>>>(
&self,
_: &mut F
) -> ControlFlow<F::BreakTy>
fn visit_with<F: TypeVisitor<TyCtxt<'tcx>>>( &self, _: &mut F ) -> ControlFlow<F::BreakTy>
impl Copy for AssocItem
impl Eq for AssocItem
impl StructuralEq for AssocItem
impl StructuralPartialEq for AssocItem
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:40 bytes