pub struct MethodCand {
pub method_def: GlobalDefId,
pub trait_def: GlobalDefId,
pub bound_owner_def: GlobalDefId,
pub container_generics: u16,
pub method_generics: u16,
pub has_fixed_trait_subst: bool,
pub fixed_self_ty: InferTyId,
pub fixed_trait_args: TySliceRange,
pub is_blanket_impl: bool,
pub impl_owner: GlobalDefId,
pub cst_fn_node: u32,
}Expand description
Candidate method produced during 3.3 inherent / trait / bound method resolution (Copy, 0 heap allocs).
Fields§
§method_def: GlobalDefIdResolved AssocFn GlobalDefId (impl’s AssocFn when defined/overridden, else trait’s AssocFn).
trait_def: GlobalDefIdEnclosing Trait GlobalDefId (GlobalDefId::NONE for inherent methods).
bound_owner_def: GlobalDefIdCallable GlobalDefId holding generic Fn* parameter bounds (trait AssocFn when default or fallback).
container_generics: u16Number of non-lifetime generic parameters on the impl (0 for direct Param/Dyn/Opaque bounds).
method_generics: u16Number of non-lifetime generic parameters declared on the method itself.
has_fixed_trait_subst: booltrue when method_sig uses Trait parameter indexing (Param(0) = Self, 1..1+N = trait_args).
fixed_self_ty: InferTyId§fixed_trait_args: TySliceRange§is_blanket_impl: bool§impl_owner: GlobalDefIdEnclosing impl identifier (CrateId::LOCAL_OVERLAY + NodeId for local CST, (r_idx, impl_idx) for .ridx).
cst_fn_node: u32CST NodeId when backed by LocalCstDefs (u32::MAX when backed by TyDefDb).