Skip to main content

ScoringStrategy

Trait ScoringStrategy 

Source
pub trait ScoringStrategy: Send + Sync {
    // Required method
    fn score_and_filter(
        &self,
        all_fragments: &[Fragment],
        core_ids: &FxHashSet<FragmentId>,
        hunks: &[DiffHunk],
        repo_root: Option<&Path>,
        seed_weights: Option<&FxHashMap<FragmentId, f64>>,
        discovered_paths: Option<&FxHashSet<Arc<str>>>,
    ) -> ScoringResult;
}

Required Methods§

Source

fn score_and_filter( &self, all_fragments: &[Fragment], core_ids: &FxHashSet<FragmentId>, hunks: &[DiffHunk], repo_root: Option<&Path>, seed_weights: Option<&FxHashMap<FragmentId, f64>>, discovered_paths: Option<&FxHashSet<Arc<str>>>, ) -> ScoringResult

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§