hir_ty::method_resolution

Function is_dyn_method

source
pub fn is_dyn_method(
    db: &dyn HirDatabase,
    _env: Arc<TraitEnvironment>,
    func: FunctionId,
    fn_subst: Substitution,
) -> Option<usize>
Expand description

Checks if the self parameter of Trait method is the dyn Trait and we should call the method using the vtable.