Skip to main content

compare_specificity

Function compare_specificity 

Source
pub fn compare_specificity(
    left: &MethodSpecificity,
    right: &MethodSpecificity,
) -> Ordering
Expand description

Orders two specificities from least to most specific.

Compares argument scores left to right, breaking ties on the total score; the dispatch organ uses this to rank applicable methods.