pub fn null_similarity_results(string1: &str, string2: &str, min_similarity: f64) -> Option<f64> {
    if string1.is_empty() && string2.is_empty() {
        return Some(1.0);
    }
    return if min_similarity >= 0.0 { Some(0.0) } else { None };
}
/// <summary>Determines the proper return value of a similarity function when one or
/// both strings are null.</summary>
Determines the proper return value of a similarity function when one or
both strings are null.
Determines the proper return value of a similarity function when one or both strings are null .
pub fn null_similarity_results(string1: &str, string2: &str, min_similarity: f64) -> Option<f64> {
    if string1.is_empty() && string2.is_empty() {
        return Some(1.0);
    }
    return if min_similarity >= 0.0 { Some(0.0) } else { None };
}
pub fn null_similarity_results ( string1 : & str , string2 : & str , min_similarity : f64 ) -> Option < f64 > { if string1 . is_empty ( ) && string2 . is_empty ( ) { return Some ( 1.0 ) ; } return if min_similarity >= 0.0 { Some ( 0.0 ) } else { None } ; }
<summary>Determines the proper return value of a similarity function when one or
both strings are null.</summary>
<summary > Determines the proper return value of a similarity function when one or both strings are null . < / summary >
string1
&str
string2
&str
min_similarity
f64