Skip to main content

score_from_profile

Function score_from_profile 

Source
pub fn score_from_profile(
    profile: &PowCapabilityProfile,
    scorer: &PowCapabilityScorer,
) -> PowCapabilityScore
Expand description

Convenience helper: score a profile and wrap the result in a PowCapabilityScore.

This is the “operator-friendly” path — most callers want “give me a score I can pass to the policy mapper” and do not want to assemble the PowCapabilityScore manually.