Skip to main content

where_predicate_must_hold

Function where_predicate_must_hold 

Source
pub fn where_predicate_must_hold<'db>(
    db: &'db dyn HirDatabase,
    resolver: &Resolver<'db>,
    store: &'db ExpressionStore,
    def: ExpressionStoreOwnerId,
    generic_def: GenericDefId,
    env: ParamEnvAndCrate<'db>,
    predicate: &WherePredicate,
) -> WherePredicateEvaluation
Expand description

This should not be used in hir-ty, only in hir. This is exposed to allow the IDE to evaluate arbitrary predicates.